• 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
"Opening" application Mail from the Dock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Opening" application Mail from the Dock


  • Subject: "Opening" application Mail from the Dock
  • From: awaw <email@hidden>
  • Date: Sat, 3 May 2008 18:59:53 +0200

An another question :
What is the best solution with the Dock/Finder :
- Mail is active without any window open.
- I want to open a new window in Mail end after of course choose my mailbox.
`
I have found a solution (probably not the best…)
…
	try
		tell window 1
			set visible to true
-- the window is in the dock and become visible
		end tell
	on error
-- Mail is active
-- There is no window open
		quit application "Mail"
		delay 1
		launch application "Mail"
		activate
		set selected mailboxes of message viewers to {mailbox The_Box}
-- Mail is open and the good mailbox is choosen
	end try
…

Gérard

Le 2 mai 08 à 08:26, awaw a écrit :

Thanks for that.

This participate to my educaton.
The message of Dave has also given a solution.

But she run a little bit randomly...
Sometimes : no action on the window in the Dock.
Why? an another mystery

I have also notice that the Dock is like an application (but no applescript dictionnary).
I have found "Quit application "Dock" who force Dock to disappear and reappear.


An another question :
What is the best solution with the Dock/Finder :
- Mail is active without any window open.
- I want to open a new window in Mail end after of course choose my mailbox.


Gérard

Le 2 mai 08 à 01:20, hd a écrit :

Miniaturized

Try this

	tell application "mail" to get properties of window 1

and you'll find it.

H

On 1 May, 2008, at 7:52, awaw wrote:

Hello,
I'm searching the same thing with Mail...

minimized or collapse… collapse!

_______________________________________________
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



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden



_______________________________________________
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: 
 >Re: Sending an application to the Dock? (From: Dave <email@hidden>)
 >Re: Sending an application to the Dock? (From: awaw <email@hidden>)
 >Re: Sending an application to the Dock? (From: hd <email@hidden>)
 >Re: Sending an application to the Dock? (From: awaw <email@hidden>)

  • Prev by Date: Re: Parsing Large Text Files
  • Next by Date: Re: Determine if file is already open
  • Previous by thread: Re: Sending an application to the Dock?
  • Next by thread: Re: XMLNextSibling is there an easier way
  • Index(es):
    • Date
    • Thread