Trouble with Unix Paths and Applescript/MACTECH
Trouble with Unix Paths and Applescript/MACTECH
- Subject: Trouble with Unix Paths and Applescript/MACTECH
- From: Cawan Starks <email@hidden>
- Date: Thu, 31 Aug 2006 23:25:23 -0700
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
|
_______________________________________________
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