• 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: Scope/Context issue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scope/Context issue?


  • Subject: Re: Scope/Context issue?
  • From: Kurt Klamp <email@hidden>
  • Date: Tue, 5 Feb 2008 09:35:15 +0100


Am 05.02.2008 um 08:21 schrieb Skeeve:

ScriptA in ScriptB is just a script object hold by a variable (here a local too).
I you want script b to be stored with its current state, use a
store script a in file "PathToScriptA"
when finishing ScriptB

Did you test it?

yes

Did it work?

yes

Which Version of OS X/AppleScript? On 10.4.11 it does not work.

here OS 10.4.11

Neither with an on quit handler nor if I store a directly after running it.

try this

-- ScriptB.app

property a : 0
property pathtoA : "PathToScriptA"
on run
	set a to load script file pathtoA
	repeat 3 times
		tell a to run
	end repeat
	store script a in file pathtoA
end run
-- -- -- -- -- -- -- --


HTH, Kurt

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Scope/Context issue?
      • From: Skeeve <email@hidden>
References: 
 >Scope/Context issue? (From: Skeeve <email@hidden>)
 >Re: Scope/Context issue? (From: Kurt Klamp <email@hidden>)
 >Re: Scope/Context issue? (From: Skeeve <email@hidden>)

  • Prev by Date: Sorting photos in iPhoto
  • Next by Date: on error result, how to parse
  • Previous by thread: Re: Scope/Context issue?
  • Next by thread: Re: Scope/Context issue?
  • Index(es):
    • Date
    • Thread