• 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: launch broken in Mt Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launch broken in Mt Lion


  • Subject: Re: launch broken in Mt Lion
  • From: Luther Fuller <email@hidden>
  • Date: Sat, 12 Jan 2013 13:38:40 -0600

On Jan 12, 2013, at 12:32 PM, koenig.yvan wrote:

I just read the description of run script in Standard additions.

I saved this script on the Desktop as target.app

on run {a, b}
display dialog a & return & b
end run

Then I saved this other script as caller.app

(path to desktop as text) & "target.app:"
result as alias
run script result with parameters {"bonjour", "bonsoir"}

Double clicking the second sript executed the first one displaying the dialog :

There is one tiny difference between 'run script' and 'run application' that makes this unworkable for me.

When the Caller does 'run script', it waits for the called script to finish before continuing.

When the Caller does 'run application', the called application begins running while the Caller continues without waiting for the called application to finish. Two independent applications are now running.

In my usage, the called application displays a "please wait …" dialog until it detects that the Caller has finished and quit, then the display goes away. So, I need to use 'run application'.

So, the problem is … can 'run application' pass parameters? If so, how?

I think the answer is No.



 _______________________________________________
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: 
 >launch broken in Mt Lion (From: Luther Fuller <email@hidden>)
 >Re: launch broken in Mt Lion (From: Shane Stanley <email@hidden>)
 >Re: launch broken in Mt Lion (From: Luther Fuller <email@hidden>)
 >Re: launch broken in Mt Lion (From: Shane Stanley <email@hidden>)
 >Re: launch broken in Mt Lion (From: Luther Fuller <email@hidden>)
 >Re: launch broken in Mt Lion (From: Luther Fuller <email@hidden>)
 >Re: launch broken in Mt Lion (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: launch broken in Mt Lion
  • Next by Date: Re: Setting Calendar Category in Apple Script
  • Previous by thread: Re: launch broken in Mt Lion
  • Next by thread: Re: launch broken in Mt Lion
  • Index(es):
    • Date
    • Thread