• 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 13:55:32 +0100


On Saturday, April 2, 2005, at 08:06 am, Joseph Weaks wrote:

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?

I tested it both as an applet - as well as from the Script menu. Works fine here every time - just as you'd expect: the 'choose file' displays on the first run only and then opens the file. Subsequent runs open the chosen file without displaying another 'choose file' dialog.


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?

That would seem to be the case. It might be helpful if someone else could reproduce it in 10.3.8 - or not. Any takers? If a bug has somehow sneaked in, it's not clear yet whether it's known...


I did not see anything in the other thread to help out.

No, it wasn't resolved as far as I recall. I just mentioned it to reassure that you may not be the only one experiencing such behaviour.


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.

Right. I don't think your scripting skills were in any doubt here - and it sounds as if you've looked into the issue in enough depth to be able to reproduce the problem every time. I'm always interested to hear about the latest features in Panther - but perhaps this is one that I don't really need right now. ;-)


I hope someone around here can turn up some more info for you, one way or another...

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


References: 
 >Re: Property won't save after tell Finder to open (From: Joseph Weaks <email@hidden>)

  • Prev by Date: making new documents in aworks6
  • Next by Date: Re: making new documents in aworks6
  • Previous by thread: Re: Property won't save after tell Finder to open
  • Next by thread: deleting individual messages from server in Mail.app
  • Index(es):
    • Date
    • Thread