• 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: File Mod Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Mod Date


  • Subject: Re: File Mod Date
  • From: Rob Jorgensen <email@hidden>
  • Date: Mon, 4 Nov 2002 11:27:33 -0500

At 4:12 PM +0000 11/4/02, Steve Savery wrote:
Below is the AppleScript I've written. As you will see I am trying to
get a list of files whose modification date is equal to the current
day. However, although it compiles, when I run it I get the error:

"Finder got an error: File document file Ice.jpg wasn't found."

upon reaching "info for a" in line 5.

tell application "Finder"
activate
repeat with myItem from 1 to number of files of folder "ePix"
set a to file myItem of folder "ePix"
set k to info for a
set j to date string of modification date of k
if date string of modification date of k is equal to date string of
the (current date) then
set myChosenFiles to myChosenFiles & a as list
end if
end repeat
end tell

Any ideas what I am doing wrong, or whether there is a more refined
method for achieving the same result?

I don't know if it's causing the problem but "info for" isn't a Finder command. The command belongs to Standard Additions.

--

Rob Jorgensen
Ohio, USA
_______________________________________________
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:
    • Re: File Mod Date
      • From: Paul Berkowitz <email@hidden>
References: 
 >File Mod Date (From: Steve Savery <email@hidden>)

  • Prev by Date: Re: AppleScript's script size limit
  • Next by Date: Re: URL Access Scripting again...
  • Previous by thread: File Mod Date
  • Next by thread: Re: File Mod Date
  • Index(es):
    • Date
    • Thread