• 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: Spotlight Workaround
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spotlight Workaround


  • Subject: Re: Spotlight Workaround
  • From: Martin Orpen <email@hidden>
  • Date: Wed, 1 Jun 2005 18:23:55 +0100

On 1 Jun 2005, at 17:55, I wrote:

    tell application "Script Editor"
        set foo to text of document 1
        set bar to path of document 1
    end tell
    tell application "Finder"
        set comment of my POSIX file bar to foo
    end tell

Which, for metadata purposes, can obviously be shortened to:


tell application "Script Editor" to set {foo, bar} to {text, path} of document 1
tell application "Finder" to set comment of my POSIX file bar to foo



BTW: What's the limit on the comment length?

I've used this on some big scripts and haven't found one that couldn't be accommodated yet :-)

--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Spotlight Workaround (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: writing text to MS Word
  • Next by Date: Re: writing text to MS Word
  • Previous by thread: Re: Spotlight Workaround
  • Next by thread: writing text to MS Word
  • Index(es):
    • Date
    • Thread