Re: Which version of InDesign created a document?
Re: Which version of InDesign created a document?
- Subject: Re: Which version of InDesign created a document?
- From: "Pat Cannon" <email@hidden>
- Date: Wed, 19 Mar 2008 12:57:10 -0500
On Tue, Mar 18, 2008 at 5:57 PM, Gary (Lists) <
email@hidden> wrote:
I don't understand. You're asking a scripter to solve a clerical oversight?
Add the customer's return format to the job jacket at intake. That's the
right way.
...
Well, Gary, that's kind of like telling a soldier that he should have the State Department straighten out the misunderstanding and save a lot of time and trouble. Totally right in principle, but not always an available option.
This seems to work for me:
-------------------------------------------
property versionNames : {"1", "2", "CS", "CS2", "CS3"} -- (Haven't tested version 1)
on open draggedItems
tell application "Finder"
try
set visible of column comment column of list view options of window 1 to true
end try
end tell
repeat with thisItem in draggedItems
if (file creator of (info for thisItem)) is "InDn" then
set theVersion to ASCII number of (read thisItem from 33 to 33)
tell application "Finder"
set theFilePath to thisItem as Unicode text
set comment of file theFilePath to "created by InDesign® " & (item theVersion of versionNames)
end tell
end if
end repeat
end open
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden