Ben Kennedy said:
>Actually I don't believe that's true anymore (w/rt a recent version of
>PM). If Max were to de-select and then re-select the message in the
>browser, he should find that the attachments are no longer greyed out.
>It seems that such action is required for PM to re-resolve the aliases
>after they've been altered.
Why is this necessary? Why doesn't this extend to files that have been
moved by a script?
Can the following script be improved to tell PM where to look for files
after they have been moved? It seems the "file" property of "Attachment"
still read only as is all attachment properties. Can we please have at
least "file" writeable finally?
******
tell application "PowerMail 5.1"
set targetPath to attachment folder as string
--if filter is "FilterName" then
set FilteredFolder to "FolderName:" as string
--end if
set targetFolder to targetPath & FilteredFolder as alias
set theMessage to current messages
repeat with msg in theMessage
repeat with attach in every attachment of msg
tell application "Finder"
set f to file of attach
move f to targetFolder
end tell
end repeat
end repeat
end tell
PM 5.1 | OS X 10.3.6 | Powerbook G4/400 | 768 MB RAM | 30 GB HD