Re: Load/Store Script Curiosity...
Re: Load/Store Script Curiosity...
- Subject: Re: Load/Store Script Curiosity...
- From: Axel Luttgens <email@hidden>
- Date: Fri, 15 Feb 2008 18:01:45 +0100
Le 15 févr. 08 à 17:21, Peter Bunn a écrit :
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.
[...]
on run
my load_run("script_file.scpt")
end run
on load_run(this_scriptfile)
[...]
store script this_script in file this_scriptfile replacing yes
[...]
end load_run
[...]
Hello Peter,
You are saving the script into:
file "script_file.scpt"
That is, you don't fully specify the destination, and thus depend on
whatever idea AppleScript has about the current directory.
HTH,
Axel
_______________________________________________
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