• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Trouble with Unix Paths and Applescript/MACTECH
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: [Q] same library in different places?
  • Previous by thread: Re: [Q] same library in different places?
  • Index(es):
    • Date
    • Thread