Code: Select all
rename the second attachment item of the publication item as "This Is the Second One.pdf"
rename the first attachment item of the publication item using format "My Renaming Format"
* RENAME -- rename an attachment item
* USING FORMAT -- the format to use in renaming
We'd also benefit by access to get the list of names of formats, also restricted to only the active ones
Code: Select all
set theFullFormatList to the full format list
set theActiveFormatList to the active format list
These additions would offer the ability to create an attachment management script package that would not require the user to know AppleScript coding (to change internal property values in the code itself).