• 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: Joseph Weaks <email@hidden>
  • Date: Sat, 2 Apr 2005 01:06:47 -0600


On Apr 2, 2005, at 12:36 AM, kai wrote:


On Fri, 1 Apr 2005 22:22:12 -0600, Joseph Weaks wrote:
-- 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.

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

I'm using 10.3.8. Are you running the script from the system-wide script menu? That's frustrating that you can't repeat the problem that the tell to Finder creates, but maybe it's a problem introduced somewhere in 10.3? I did not see anything in the other thread to help out. I know how to do "if myproperty is missing value..." type stuff. The problem is that when the script has the tell to Finder, the property is not getting saved.


Joe

_______________________________________________
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: kai <email@hidden>
References: 
 >Re: Property won't save after tell Finder to open (From: kai <email@hidden>)

  • Prev by Date: Re: Property won't save after tell Finder to open
  • Next by Date: Re: Maintaining "State" information between scripts in an AS application
  • 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