• 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: "Save changes to script" when it terminates?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >"Save changes to script" when it terminates? (From: Chap Harrison <email@hidden>)

  • Prev by Date: "Save changes to script" when it terminates?
  • Next by Date: Re: Date object into FMP field
  • Previous by thread: "Save changes to script" when it terminates?
  • Next by thread: Re: "Save changes to script" when it terminates?
  • Index(es):
    • Date
    • Thread