• 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: script editor wants to save an unchanged script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: script editor wants to save an unchanged script


  • Subject: Re: script editor wants to save an unchanged script
  • From: Mr Tea <email@hidden>
  • Date: Wed, 21 Nov 2001 21:25:13 +0000

This from Donald S. Hall - dated 21/11/01 7.12 am:

> Can anyone tell why, after running the script below in the Script Editor, I
> am always asked if I want to save the changes to the script even though I
> have not made any changes?

Its the variables. When you open the script they have a null value, when you
run it, they change to the values you set. Therefore the Script Editor
thinks that the script has changed - as indeed it has, in a metaphysical
sort of way.

That's my hypothesis, anyway, and it seems to be upheld by the following
example:

This script does not ask if you want to save it after running:

display dialog "At present, Mac OS X is a step back for most users."

...while this one does:

set theDialog to "At present, Mac OS X is a step back for most users."
display dialog theDialog

Mr Tea
--
Brew of the day: Variable Blend


References: 
 >script editor wants to save an unchanged script (From: "Donald S. Hall" <email@hidden>)

  • Prev by Date: Re: Save a file from textEdit - OS X
  • Next by Date: Re: Sorting
  • Previous by thread: Re: script editor wants to save an unchanged script
  • Next by thread: Re: script editor wants to save an unchanged script
  • Index(es):
    • Date
    • Thread