Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"




On Dec 18, 2006, at 10:07 PM, Bill Hernandez wrote:

-- +---------+---------+---------+---------+---------+---------+
on script_title()
(*
Filename : get_every_file_of_every.scpt (Script Debugger)
Author : Bill Hernandez
Version : 1.0.0
Updated : Tuesday, January 02, 2007 ( 6:15 PM )
*)
end script_title
-- +---------+---------+---------+---------+---------+---------+
on script_notes( )
(*
This is a work around to the alias list problem I encountered
*)
end script_notes
-- +---------+---------+---------+---------+---------+---------+
tell application "Finder"
activate
set thePath to choose folder

-- THIS DOES NOT GIVE THE CORRECT ANSWER --> as alias list, instead it returns a document list
set aSel to (((every document file in folder thePath) & (every document file of every folder in folder thePath)) as alias list)

display dialog ("[2451] " & (get modification date of (item 1 of aSel)) as string)

set f_info to info for (alias ((item 1 of aSel) as text))
display dialog ("[2452] " & (get modification date of f_info) as string)

-- THIS DOES THE TRICK, it returns an alias list
set aSelection1 to (every document file in folder thePath) as alias list
set aSelection2 to ((every document file of every folder in folder thePath)) as alias list
set aSelection to (aSelection1 & aSelection2)

display dialog ("[2453] " & (get modification date of (item 1 of aSelection)) as string)

set f_info to info for (alias ((item 1 of aSelection) as text))
display dialog ("[2454] " & (get modification date of f_info) as string)
end tell
-- +---------+---------+---------+---------+---------+---------+


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.