• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Which version of InDesign created a document?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Which version of InDesign created a document?
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Which version of InDesign created a document? (From: "Simon, Garry" <email@hidden>)
 >Re: Which version of InDesign created a document? (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: Toxic Soup and Enough for all
  • Next by Date: Re: Abs function broken on leopard?
  • Previous by thread: Re: Which version of InDesign created a document?
  • Next by thread: Re: Which version of InDesign created a document?
  • Index(es):
    • Date
    • Thread