Why doesn't this simple script work?
Why doesn't this simple script work?
- Subject: Why doesn't this simple script work?
- From: email@hidden
- Date: Wed, 8 Aug 2001 17:49:01 +0100
When this script encounters a file:
tell application "Finder"
activate
set this_folder to "Daily Pairer 1:DailyDone:"
set these_items to list folder this_folder without invisibles
repeat with i from 1 to the count of these_items
set this_item to alias ((this_folder as text) & (item i of
these_items as text))
set the item_info to info for file (this_item)
if folder of the item_info is true then
if (alias of the item_info is false) and (the file type of
the item_info is "EPSF") then
move this_item to folder "Ad Report Folder:"
end if
end if
end repeat
end tell
I get the error
--> Can't get folder of {name:"IP09.15N.1ST.EPSF", creation date:date
"Wednesday, August 8, 2001 3:47:47 pm", modification date:date "Wednesday,
August 8, 2001 3:47:49 pm", icon position:{-1, -1}, visible:true,
size:5.78659E+5, folder:false, alias:false, locked:false, busy
status:false, file creator:"XPR3", file type:"EPSF", short version:"", long
version:""}.
...which doesn't make sense because it's right there- folder:false. Can
anyone shed some light on this for me?
PLEASE NOTE: The Independent has moved
The new switchboard telephone number is 020 7005 2000
The address is Independent House, 191 Marsh Wall, London E14 9RS
This e-mail is confidential and is intended to be read by the addressee
only. If you have received it in error, please notify us at once by return
e-mail or by telephone on 020 7005 2000. You should then delete this e-mail
and any copies of it from your computer system. Any reproduction,
publication, copying, modification, distribution or other dissemination or
use of this communication is strictly prohibited. The Independent News &
Media Group does not accept any liability for opinions, advice or views
contained in this e-mail. Please note that the Group does not enter into
any form of contract by email, and no one is authorised to enter into
contracts on behalf of the Group in this way. Any part of this e-mail,
which is of a purely personal nature is unauthorised by the Group, and the
Group specifically disclaims all liability for any e-mails which are
defamatory, racist, offensive, or in breach of any person's rights. All
e-mail passing through the Group's e-mail systems may be subject to
monitoring. The Group accepts no liability for errors or viruses.