Re: Creating preferences for an applescript application
Re: Creating preferences for an applescript application
- Subject: Re: Creating preferences for an applescript application
- From: Michelle Steiner <email@hidden>
- Date: Tue, 23 Nov 2004 11:04:50 -0700
On Nov 23, 2004, at 10:37 AM, Robert Poland wrote:
Guess I wasn't clear...
A script "test"
run script file ":Library:Scripts:Universal Scripts:SetSoundVolume" --
as alias
tell application "System Events" to set procs to name of every process
set sysID to do shell script "system_profiler SPNetworkDataType | awk
'/Ethernet Address/ { print $3 }'"
display dialog sysID
Where script SetSoundVolume is getting pref data errors because "path
to me" refers to path to "test" rather than Path to "SetSoundVolume".
I am missing something. For one thing, you didn't include the script
"SetSoundVolume" so I can't tell what you're trying to do.
"Path to me" never points to a compiled script file; it always points
to the application file that runs the script. In the case of a script
that's compiled as an application; the script is the application, and
it returns the script application file.
So, returning "test" is the proper behavior. Therefore, you can't use
"path to me" in this situation; you need to find another solution. One
solution is to put the preferences into a data file stored in the
preferences folder. Then it won't matter where "test" or
"SetSoundVolume" are located.
-- Michelle
--
Tubal Litigation: Suing because of a misconception
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden