• 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: Called script won't store property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Called script won't store property


  • Subject: Re: Called script won't store property
  • From: Gnarlodious <email@hidden>
  • Date: Mon, 28 Feb 2005 13:03:40 -0700

Entity kai uttered this profundity:

> set scriptFile to alias "path:to:required:script.app" -- modify as
> required
> set s to (load script scriptFile)
> set scriptResult to run s
> store script s in scriptFile replacing yes
> display dialog scriptResult
Thanks kai, "load script" is what I was looking for.
Added bonus; the script runs invisibly, that is, no app shows in the Dock
while running.

> Nevertheless, we can observe a difference when something like this is
> included in the "calledApplet".
> -------------------------
> tell application "Finder" to set myName to name of (path to me)
> display dialog "This script is being run by " & myName & "."
> --> [on double-clicking the "calledApplet" file:] "This script is being
> run by calledApplet."
> --> [on running script from the "callingApplet":] "This script is being
> run by callingApplet."
Thanks for pointing that out. Wonder if this is the result of a potential
bug?

> (Oh yeah... one final caveat: I'm currently testing in 10.2.8 - so your
> experience may vary.)
Seems to work in 10.3.7


-- Gnarlie
"Deftly they opened the brain of a child, and it was full of flying dreams."
                                        ~ Stanley Kunitz

 _______________________________________________
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

References: 
 >Re: Called script won't store property (From: kai <email@hidden>)

  • Prev by Date: Re: Getting the version of a product
  • Next by Date: Re: Removing html tags
  • Previous by thread: Re: Called script won't store property
  • Next by thread: Re: Called script won't store property
  • Index(es):
    • Date
    • Thread