Re: "Save changes to script" when it terminates?
Re: "Save changes to script" when it terminates?
- Subject: Re: "Save changes to script" when it terminates?
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 11 Mar 2004 15:44:09 -0500
on 2004-03-11 3:17 PM, Chap Harrison at email@hidden wrote:
>
I ran, from a write protected directory, a small Applescript which
>
simply installs files. It ran correctly, but when it ended I received
>
an error as follows:
>
>
"Could not save changes to script because you do not have necessary
>
write permission. -5000"
>
>
What sort of changes might the script have been trying to save?
>
Anything crucial? I'd like to distribute the installer on a CD but
>
this is a clunky ending to an otherwise-successful install.
If you use AppleScript 'property' statements in your script and their value
is changed during execution, AppleScript will try to save them when the
script is finished. I believe you can avoid this by using 'set' or 'copy'
statements with local variables, instead. I'm not sure about global
variables.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.