![]() |
|||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1
|
|||
|
|||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
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 |