• 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
Load/Store Script Curiosity...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Load/Store Script Curiosity...


  • Subject: Load/Store Script Curiosity...
  • From: Peter Bunn <email@hidden>
  • Date: Fri, 15 Feb 2008 10:21:20 -0600

I've been doing some experimenting with load script/store script
routines, and found the following an odd quirk.

A 'master' script app saved as a bundle, with a 'slave' script
(script_file.scpt) placed in the app's Resources folder works as hoped...
but - strangely - deposits a copy of the script_file.scpt in the hard
drive (Macintosh HD) folder.  I can't figure out why.

Can anyone explain this behavior?

Thanks.

Peter B.

-----

-- Master script:

on run
	my load_run("script_file.scpt")
end run

on load_run(this_scriptfile)
	set the script_path to path to resource this_scriptfile
	set this_script to load script script_path
	set this_text to "Foo"
	set this_dialog of this_script to this_text
	store script this_script in file this_scriptfile replacing yes
	run script this_script
end load_run

---------

-- Slave script:

property this_dialog : ""

display dialog this_dialog

---------------
------------------------

 _______________________________________________
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: Load/Store Script Curiosity...
      • From: Axel Luttgens <email@hidden>
    • Re: Load/Store Script Curiosity...
      • From: Philip Aker <email@hidden>
    • Re: Load/Store Script Curiosity...
      • From: Skeeve <email@hidden>
  • Prev by Date: Re: Error -609 and Filemaker
  • Next by Date: Re: Load/Store Script Curiosity...
  • Previous by thread: Re: Sound Effects
  • Next by thread: Re: Load/Store Script Curiosity...
  • Index(es):
    • Date
    • Thread