• 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: Preview.app scriptable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preview.app scriptable


  • Subject: Re: Preview.app scriptable
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 13 Jan 2010 22:40:18 +0100


Le 13 janv. 2010 à 21:44, Gmeiner Jobst a écrit :

Hi Robert and Yvan,

thank you again for your mails. Now, I am totally confused and not amused!

As I reported before, the 'first window' didn't move at all when scripted. By accident then I adressed window 2, and voilà, it did what it should (using 'size' and 'position' as you suggested, 'bounds' are not working).

Then, I asked for the name of window 2 and got  the result I see on top of the window of the jpg-file on the screen:

tell application "System Events"
get name of window 2 of application process "Preview"
--> "1966_12_25_Michaelkalender.jpg"
end tell

Asking for the name of window 1 I got nothing:

tell application "System Events"
get name of window 1 of application process "Preview"
end tell

Then, I repeated everything from the scratch starting 'Preview' with double clicking a random jpg.-file  >> same result.
Then, I repeated everything from the scratch starting 'Preview' with double clicking a random jpg.-file  on my MacBook >> same result.

Therefore, when I use in the script the name of the window instead of the number, everything seems to be OK!

Could you tell me by chance what's all about the 'ghost' window 1 of Preview.app ?

Thanks for your patience 
Jobst

I don't know what is this ghost window.

For safe, you may ask the name of every windows and look at it.

Given what wrote Robert (its original script does the trick), 
maybe Preview starts the window numbering to 2 so that its first window is not window 1 but window 2 ????

Yvan KOENIG (VALLAURIS, France) mercredi 13 janvier 2010 22:40:07




 _______________________________________________
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

References: 
 >Preview.app scriptable (From: Gmeiner Jobst <email@hidden>)
 >Re: Preview.app scriptable (From: Robert Poland <email@hidden>)
 >Re: Preview.app scriptable (From: Gmeiner Jobst <email@hidden>)
 >Re: Preview.app scriptable (From: Robert Poland <email@hidden>)
 >Re: Preview.app scriptable (From: Gmeiner Jobst <email@hidden>)

  • Prev by Date: Re: Preview.app scriptable
  • Next by Date: Re: Preview.app scriptable
  • Previous by thread: Re: Preview.app scriptable
  • Next by thread: Re: Preview.app scriptable
  • Index(es):
    • Date
    • Thread