Re: Trouble with Unix Paths and Applescript/MACTECH
Re: Trouble with Unix Paths and Applescript/MACTECH
- Subject: Re: Trouble with Unix Paths and Applescript/MACTECH
- From: Philip Aker <email@hidden>
- Date: Fri, 01 Sep 2006 00:36:27 -0700
On 2006-08-31, at 23:25:23, Cawan Starks wrote:
I wrote a simple script to back up one folder to another after
reading an article in MACTECH magazine on how to make a GUI for
your scripts (yes I am a newbie to Xcode).
After I build the application and run it, I get an error message
that reads "The variable setup is not defined. (2753)" Does anyone
have any idea how I can correct this issue? I have spent two days
trying to figure this out. Below is the code that I am using. Any
help would be much appreciated.
on clicked theObject
-setup
set myPath to POSIX path of (path to me) as string
do shell script quoted form of myPath & "Contents/Resources/
backup.sh"
end clicked
I also tried this code as well with the same results:
on clicked theObject
-setup
set myPath to POSIX path of (path to me)
set myPath to (myPath & "Contents/Resources/backup.sh")
set myPath to quoted form of myPath
set command to "Contents/Resources/backup.sh"
end clicked
In AppleScript, a comment is two consecutive minus signs. I haven't
seen the article in question but it looks like it might have been
meant to be a comment.
--setup
Might be good for you to actually read some AppleScript
documentation. It is available from the XCode help menu and certainly
takes less than two days to read the basics. Also, a better list for
AppleScript questions is the AppleScript-Users list, and a better
list for AppleScript Studio questions is the AppleScript-Studio list.
Philip Aker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden