Re: Alias Forms as Property
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