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
Old 02-08-2006, 03:31 PM
Budgie Budgie is offline
Registered User
Join Date: Aug 2005
Location: New Zealand
Posts: 78
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
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"
open file myFile
end tell

any ideas Dave?

Reply With Quote
Old 02-08-2006, 04:50 PM
dnanian's Avatar
dnanian dnanian is offline
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
You bet. A shell script is not the same as an AppleScript. You can call an AppleScript from a shell script using "osascript", but you can't call it "directly" as you did...
--Dave Nanian
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 07:55 AM
Scheduled Custom Script Uses Wrong Script? Dasman General 1 12-08-2005 01:55 PM
Saving us from ourselves - keep BU unmounted MacMedix General 8 11-02-2005 12:20 PM
Error: No space left on device tradervic General 11 06-29-2005 04:50 PM
Error when running SuperDuper via shell script kbradnam General 9 03-09-2005 05:12 PM

All times are GMT -4. The time now is 05:49 PM.

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