• 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: applications launch invisibly in 10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applications launch invisibly in 10.5?


  • Subject: Re: applications launch invisibly in 10.5?
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 19 Mar 2008 14:31:14 -0700

On Mar 19, 2008, at 1:10 PM, Vince Angeloni wrote:

I thought applications were not supposed to make themselves visible when launched via applescript in Leopard unless they are specifically "activated."  I have seen this work with iCal, but it seems to fail with Mail here:

tell application "Mail"
set newMessage to make new outgoing message with properties {subject:"test", content:"mytext"}
tell newMessage
make new to recipient at end of to recipients with properties {name:"yourNameHere", address:"email@hidden"}
end tell
end tell

Applications do launch hidden in Leopard, and Mail did in fact launch hidden, but there's nothing to say that an application can't make itself visible in response to a command.  In this case, you implicitly told it to show by not specifying "visible:false" in the outgoing message properties.  That said, it wouldn't have worked right even if you did, because Leopard Mail seems to always show the new message at least briefly, so that's a bug in Mail.


--Chris Nebel
AppleScript Engineering

 _______________________________________________
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: applications launch invisibly in 10.5?
      • From: Philip Aker <email@hidden>
References: 
 >applications launch invisibly in 10.5? (From: Vince Angeloni <email@hidden>)

  • Prev by Date: Re: extract URL from general text
  • Next by Date: Re: Creating A Property List File
  • Previous by thread: applications launch invisibly in 10.5?
  • Next by thread: Re: applications launch invisibly in 10.5?
  • Index(es):
    • Date
    • Thread