• 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
What causes scripts not remembering properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What causes scripts not remembering properties?


  • Subject: What causes scripts not remembering properties?
  • From: Joe Kelly <email@hidden>
  • Date: Tue, 4 Dec 2001 17:18:45 -0800

I have a compiled script with one property, a string that maintains a path
to some file object:

property pFilePath : ""

on run
if (pFilePath is "")
set pFilePath to (choose folder with prompt "Where's the file?") as
string
end
... do something with pFilePath
end


Every time I run this script (or load it and call it from within another
script), pFilePath is always set to "" regardless of what it was set to the
last time the script ran. This is frustrating and weird, considering I have
about 10 other scripts that DO remember their properties, and one or two
little errant scripts that don't.

joe


  • Prev by Date: Re: Script problems with BBEdit 6.5
  • Next by Date: Re: Script problems with BBEdit 6.5
  • Previous by thread: Re: Script problems with BBEdit 6.5
  • Next by thread: Somewhat OT: 10.1.1 upgrade problems with PPPoE
  • Index(es):
    • Date
    • Thread