Property won't save after tell Finder to open
Property won't save after tell Finder to open
- Subject: Property won't save after tell Finder to open
- From: Joseph Weaks <email@hidden>
- Date: Fri, 1 Apr 2005 22:22:12 -0600
The property is not automagically saving within the script when my last
action is to tell the Finder to open something.
-- Given this script:
property filePath : ""
display dialog filePath
if filePath is "" then
set filePath to (choose file) as string
end if
The second time I run that script, the display dialog shows that the
property has correctly stored my value. But if I add at the end the
line:
tell application "Finder" to open file filePath
well, then, the property never gets stored. What on earth is going on
here, and what is the work around? I noticed that if I add a display
dialog after the Finder tell so that I have to bring the script back to
the front in order to dismiss the dialog box then it will save the
property.
?????
Thanks,
Joe Weaks
_______________________________________________
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