• 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: Alias Forms as Property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alias Forms as Property


  • Subject: Re: Alias Forms as Property
  • From: kai <email@hidden>
  • Date: Sun, 7 Nov 2004 03:11:21 +0000


On Sat, 6 Nov 2004 18:26:20 -0800, Michael Terry wrote:

Does this solve the problem, or did I misunderstand?:

--

property supportFile : choose file

init()

on init()
if not (exists supportFile) then set supportFile to (choose file)
return
end Setup


on exists theFile
        try
                alias (theFile as string)
                theFile ≠ ""
        on error
                false
        end try
end exists


I like that, Michael. And if you didn't want to choose the file until the first run, something like this might do the trick:

--------------------------

property f : missing value

try
	f as string as alias
on error
	set f to (choose file)
end try

--------------------------

---
kai

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Alias Forms as Property
      • From: kai <email@hidden>
  • Prev by Date: Re: Fraction Maker Revisited Solved?
  • Next by Date: Re: Alias Forms as Property
  • Previous by thread: Re: Alias Forms as Property (Was: Applescript-users Digest, Vol 1, Issue 177, Message 3)
  • Next by thread: Re: Alias Forms as Property
  • Index(es):
    • Date
    • Thread