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

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
References: 
 >Load/Store Script Curiosity... (From: Peter Bunn <email@hidden>)

  • Prev by Date: Re: Load/Store Script Curiosity...
  • Next by Date: Re: Load/Store Script Curiosity...
  • Previous by thread: Re: Load/Store Script Curiosity...
  • Next by thread: Re: Load/Store Script Curiosity...
  • Index(es):
    • Date
    • Thread