• 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
Re: Creating preferences for an applescript application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Creating preferences for an applescript application
      • From: Paul Berkowitz <email@hidden>
References: 
 >Creating preferences for an applescript application (From: Bjorn Sodergren <email@hidden>)
 >Re: Creating preferences for an applescript application (From: Michelle Steiner <email@hidden>)
 >Re: Creating preferences for an applescript application (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Creating preferences for an applescript application
  • Next by Date: browser neutral javascript from applescript?
  • Previous by thread: Re: Creating preferences for an applescript application
  • Next by thread: Re: Creating preferences for an applescript application
  • Index(es):
    • Date
    • Thread