• 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: Property won't save after tell Finder to open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property won't save after tell Finder to open


  • Subject: Re: Property won't save after tell Finder to open
  • From: kai <email@hidden>
  • Date: Sat, 2 Apr 2005 07:36:51 +0100


On Fri, 1 Apr 2005 22:22:12 -0600, Joseph Weaks wrote:

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.
?????

I haven't been able to reproduce this in 10.2.8, Joe - but Ed Wiederer recently reported similar behaviour in the "Capturing username for script that mounts server" thread on this list:


http://lists.apple.com/archives/applescript-users/2005/Mar/msg00817.html

I wonder if anyone else can replicate the problem - and what system version they're using...

---
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: Property won't save after tell Finder to open
      • From: Joseph Weaks <email@hidden>
  • Prev by Date: Re: File Properties as string
  • Next by Date: Re: Property won't save after tell Finder to open
  • Previous by thread: Re: Property won't save after tell Finder to open
  • Next by thread: Re: Property won't save after tell Finder to open
  • Index(es):
    • Date
    • Thread