• 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: Opening the newest file in a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening the newest file in a folder


  • Subject: Re: Opening the newest file in a folder
  • From: Doug McNutt <email@hidden>
  • Date: Fri, 14 Dec 2007 11:32:36 -0700

At 12:12 -0600 12/14/07, Craig Cope wrote:
>I need to open any file most recently dropped into a folder so I can do some text manipulation on it.  My script does the necessary manipulation on a file if I supply its precise file name, but, in practice, the name will vary.  My attempts to get the script to open the most recent file have failed

The modification date of a file will not change just because it is moved into a different folder.

You may have to consider a shadow folder that receive files.  Let your script process them and then move them into the real destination.

It might be possible to maintain your own list of files in a folder using AppleScript's persistent variables and properties but it would be easy for things to get nasty if, for instance, someone dropped two files at the same time.
--

--> From the U S of A, the only socialist country that refuses to admit it. <--
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Opening the newest file in a folder
      • From: has <email@hidden>
References: 
 >Opening the newest file in a folder (From: Craig Cope <email@hidden>)

  • Prev by Date: Re: FileMaker 6 "not scriptable" under Leopard?
  • Next by Date: Re: Dumb Finder scripting question
  • Previous by thread: Opening the newest file in a folder
  • Next by thread: Re: Opening the newest file in a folder
  • Index(es):
    • Date
    • Thread