Re: best practice with helper AppleScript
Re: best practice with helper AppleScript
- Subject: Re: best practice with helper AppleScript
- From: Chuck Rice <email@hidden>
- Date: Wed, 25 Jun 2003 05:31:58 -0700
At 6:19 PM -0700 6/24/03, Christopher Corbell wrote:
Here are the options I've explored:
1) Since the script is small, include it as hard-coded text and
interpolate the variable HFS file path into this source at runtime.
Then compile and launch it with NSAppleScrip,t or with Carbon
facilities.
2) Include the script inside the app bundle. Pass the location
of the file as a parameter to the script.
I do not know what is best, but I use #2.
Someone posted some AppleScript code here that I used for a basis to
a class that I built into my application. You can look at the code in
the source code section of my Car MP3 Player project at:
<
http://www.wildrice.com/BlueCabbie/>
I do not know where the original code came from. If I did, I would
give them credit. But it does work well and I use it a lot in my
application to control iTunes.
I must tell you that this is only my second Cocoa application, so I
am sure that I have committed a lot of Newbie Sins in that code, so
watch for that, but the example might help you. -Chuck-
--
Fight Spam! Join CAUCE! ==
http://www.cauce.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.