Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
- Subject: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
- From: deivy petrescu <email@hidden>
- Date: Mon, 18 Dec 2006 20:20:45 -0500
On Dec 18, 2006, at 14:06, Bill Hernandez wrote:
tell application "Finder"
-- Find any Explorer HTML documents
-- ALL OF THESE GENERATE THE FOLLOWING ERROR
-- Finder got an error: Can't get every document file of every
folder of startup disk whose creator type = "MSIE"
-- set aList to get (every document file of every folder of the
startup disk) whose {creator type:"MSIE"}
-- set aList to get (every document file of every folder of the
startup disk) whose (creator type) is "MSIE"
-- set aList to get (every document file of every folder of the
startup disk) whose (creator type is "MSIE")
set aList to get (every document file of every folder of the
startup disk) whose (creator type is "MSIE")
repeat with f_ref in aList
set the (creator type) of f_ref to "sfri" -- Change the creator
type to Safari
end repeat
end tell
Any ideas why this does not work ?
TIA
Bill,
I believe it does not work because you are being a bit too ambitious
with the "Finder".
If you select some smaller folders you should be able to do it.
But ditch the repeat loop.
This code works here:
set l to alias "BuiaBuio:Users:deivy:Desktop:Ex_Dtop_folder:"
-- the line below is really one line
tell application "Finder" to x set the creator type of (every
document file of (every folder) of l) whose (name contains ".txt") to
"R*ch"
Deivy
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden