Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Called script won't store property



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.