• 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: AppleScript Editor and its windows.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Editor and its windows.


  • Subject: Re: AppleScript Editor and its windows.
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 23 Mar 2014 12:13:04 +0100

I continued my tests.

Preview like TextWrangler have no ghost window.

But testing their behavior I discovered that the same property is named at least three different ways.

AppleScript Editor like Numbers use minimized
TextWrangler use collapsed
Preview use miniaturized.

This is why I tested Preview with the script :

activate application "Preview"
tell application "Preview"
name of windows whose visible is true
properties of windows whose visible is true
try
name of windows whose collapsed is true
end try
try
name of windows whose minimized is true
end try
try
name of windows whose miniaturized is true
end try
try
name of windows whose visible is false
set visible of windows whose visible is false to true
end try
end tell


whose events log was :

tell application "Preview"
activate
get name of every window whose visible = true
--> {}
get properties of every window whose visible = true
--> {}
get name of every window whose miniaturized = true
--> {"Réseau13.44.41.png", "2014-03-23T11.17.17.png"}
get name of every window whose visible = false
--> {"Réseau13.44.41.png", "2014-03-23T11.17.17.png"}
set visible of every window whose visible = false to true
end tell

Yvan KOENIG (VALLAURIS, France) dimanche 23 mars 2014 12:12:58


 _______________________________________________
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

  • Prev by Date: Re: AppleScript Editor and its windows.
  • Next by Date: Re: AppleScript Editor and its windows.
  • Previous by thread: Re: AppleScript Editor and its windows.
  • Next by thread: Some line breaks aren't showing up when I try and make a list of paragraphs of email contents
  • Index(es):
    • Date
    • Thread