• 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: Why doesn't this work any more?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why doesn't this work any more?


  • Subject: Re: Why doesn't this work any more?
  • From: John Delacour <email@hidden>
  • Date: Sun, 13 Apr 2003 11:39:25 +0100
  • Mac-eudora-version: 6.0a15

At 9:49 am +0100 13/4/03, Jeremy Roussak wrote:

set fl to every folder in alias "JR:Work:" whose modification date is greater than lastDate

The folder JR:Work: does exist and lastDate is a date variable. I get a message from the Finder that it can't make some data into the expected type.

I think this bug has been mentioned a few times on the list.

You'll have to use a loop instead:


set {d, f} to {"1/1", (path to "cusr")}
set {date_, hits_} to {date d, {}}
tell app "Finder"
repeat with i in (get folders in f)
if i's modification date < date_ then set end of hits_ to f as alias
end
hits_
end
_______________________________________________
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.

  • Follow-Ups:
    • Personality settings in Eudora
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Why doesn't this work any more?
  • Next by Date: Re: list of (non-background) processes
  • Previous by thread: Re: Why doesn't this work any more?
  • Next by thread: Personality settings in Eudora
  • Index(es):
    • Date
    • Thread