• 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: Panther bug: 'missing value' for modification date??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Panther bug: 'missing value' for modification date??


  • Subject: Re: Panther bug: 'missing value' for modification date??
  • From: Harald E Brandt <email@hidden>
  • Date: Thu, 19 Feb 2004 18:22:24 +0100

+--> Paul Berkowitz wrote 04-02-19:
Why don't you just do it twice, without any error trapping:

tell app "Finder"
set modDate to modification date of file "hd:Documents:a.p"
set modDate to modification date of file "hd:Documents:a.p"
end


or, if you still find that slower than you'd like on your older non-Panther
machines:

tell app "Finder"
set modDate to modification date of file "hd:Documents:a.p"
if modDate is missing value then
set modDate to modification date of file "hd:Documents:a.p"
end if
end
+-

Because it's too slow!
(Yes, I already tried those versions, and the result is that even on Panther with a local volume, that extra if statement increases execution time 3 times, as calculated on a loop using an 8-element list. (Executed as 'run script' of a saved file to eliminate the overhead that Script Editor otherwise imposes.))

+-
I expect that something in Panther may be too _fast_ for the file to
"register" somewhere so that's why it doesn't get the mod date (or probably
other properties) of the file on first pass. But I don't know. You should
file it as a bug yourself at <http://bugreport.apple.com>
+-

Yea, I have quite a few there..., but I would first like to know (from Chris perhaps?) if this is known and if there is a "proper" way it should be done that is not so slow. (Using 'info for' is simply "out").

Thanks for your response.
It surprises me that others haven't stumbled over this - I have been really slow upgrading to Panther (basically because I want to do things that are compatible with Jaguar).

Regards,


______heb__________________________
Harald E Brandt http://bragit.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Panther bug: 'missing value' for modification date?? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Panther bug: 'missing value' for modification date??
  • Next by Date: Re: RegEx question
  • Previous by thread: Re: Panther bug: 'missing value' for modification date??
  • Next by thread: Re: Panther bug: 'missing value' for modification date??
  • Index(es):
    • Date
    • Thread