• 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: Display dialog with image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display dialog with image


  • Subject: Re: Display dialog with image
  • From: Christian Vinaa <email@hidden>
  • Date: Sat, 25 Feb 2006 10:48:19 +0100

At 19:43 -0800 24/02/2006, Stockly, Ed wrote:
Hi,

I've got a script that is asking the user for information about an image that's available on the server.

The user won't recognize the photo from the file names, so I thought I'd have the script display the image in Preview, but it is not scriptable. I have to quit preview after every image, ( it understands open and quit, but not close document/widow 1) which ads a lot of time to the script.

Nearly all these images are tiffs and nearly all have low res previews and all of them are large, hi-res images. (10 to 30 megs).

So, my question is, is there a way to display a tiff's preview, rather than open the entire file and is there a preferred app to do this with?

Thanks

ES


perhaps this can help you with some ideas / opritions

a little script of mine that opens a series of pictures in preview and then I get the option of deleting or keeping

on open
tell application "Finder"
set TheList to selection
end tell
repeat with x in TheList
tell application "Preview"
open x
set myResult to display dialog "Keep or delete picture ?" buttons {"Keep", "Delete"} default button 2 with icon note
set buttonAnswer to button returned of myResult
if buttonAnswer is "Keep" then
tell application "System Events"
tell process "Preview"
click menu item "Luk" of menu "Arkiv" of menu bar 1
--type "w" holding command
end tell
end tell
else if buttonAnswer is "Delete" then
tell application "Finder"
set label index of x to 7
end tell
tell application "System Events"
tell process "Preview"
click menu item "Luk" of menu "Arkiv" of menu bar 1
--type "w" holding command
end tell
end tell
end if
end tell
end repeat
end open


--
Christian Vinaa

...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
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


  • Follow-Ups:
    • Re: Display dialog with image
      • From: Yvan KOENIG <email@hidden>
References: 
 >Display dialog with image (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Display dialog with image
  • Next by Date: Folder action script
  • Previous by thread: Display dialog with image
  • Next by thread: Re: Display dialog with image
  • Index(es):
    • Date
    • Thread