• 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: Image Events and Preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image Events and Preview


  • Subject: Re: Image Events and Preview
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 13 Feb 2010 11:31:08 -0700

On Feb 13, 2010, at 11:05 AM, Martin Michel wrote:

I cannot tell you why Preview isn't scriptable, but can tell you how to open JPG files with it:

How about this:

set the fileToBeOpened to choose file of type {"jpg", "jpeg"}
tell application "Finder" to open the fileToBeOpened

Of course, the Finder has to be set to open all JPG files with Preview, but that's a one-time easy thing to do.  And equally of course, change the first line of the script as needed to identify the file to be opened.

-- Michelle

-- 
Some people think computers need to be complicated.  They really have a tough time when it's not.

 _______________________________________________
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: Image Events and Preview
      • From: Emmanuel LEVY <email@hidden>
References: 
 >Image Events and Preview (From: Rob Lewis <email@hidden>)
 >Re: Image Events and Preview (From: Martin Michel <email@hidden>)

  • Prev by Date: Re: Image Events and Preview
  • Next by Date: Re: Image Events and Preview
  • Previous by thread: Re: Image Events and Preview
  • Next by thread: Re: Image Events and Preview
  • Index(es):
    • Date
    • Thread