Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-08-2006, 04:31 PM
Budgie Budgie is offline
Registered User
 
Join Date: Aug 2005
Location: New Zealand
Posts: 77
Do shell script erroring?

Hi Dave
Im running the "do shell script" command with a apple script attached, that sends some basic text to a text file after SD has completed, the text file is located in a folder on my server, all permissions for the folder, plus the text file are set to"read and write" and are set to owner "admin", problem is that the script when run from SD fails, result is:

| 09:09:53 AM | Info | ...ACTION: Running shell script Send SD Report .scpt
| 09:09:53 AM | Info | ......COMMAND => Invoking site customization script: /Applications/SUPER DUPER/Send SD Report .scpt
| 09:09:53 AM | Error | sh: line 1: /Applications/SUPER DUPER/Send SD Report .scpt: Permission denied

but when run directly from script editor it works fine.
heres the apple script.

set myFile to ("ADMIN REPORTS:SD REPORTS:SD Report.txt")
set myDate to (current date) as text
set myName to long user name of (get system info) as text
set myComm to "SD Complete"
set theData to myDate & tab & tab & myName & tab & tab & myComm & return
try
close access file myFile
end try
open for access file myFile with write permission
write theData to file myFile starting at eof
close access file myFile
-------------this calls the text file for examination"-----------------
tell application "TextEdit"
activate
open file myFile
end tell

any ideas Dave?

Cheers
Budgie
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A strategy for managing SD! jobs via AppleScript Syzygies General 15 05-01-2006 08:55 AM
Scheduled Custom Script Uses Wrong Script? Dasman General 1 12-08-2005 02:55 PM
Saving us from ourselves - keep BU unmounted MacMedix General 8 11-02-2005 01:20 PM
Error: No space left on device tradervic General 11 06-29-2005 05:50 PM
Error when running SuperDuper via shell script kbradnam General 9 03-09-2005 06:12 PM


All times are GMT -4. The time now is 09:55 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.