Load/Store Script Curiosity...
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