• 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: Run script with arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run script with arguments


  • Subject: Re: Run script with arguments
  • From: Nicola Vitacolonna <email@hidden>
  • Date: Tue, 30 Dec 2014 13:31:32 +0100

> I think you're missing my point. Run this:
>
> script Foo
> 	on run
> 		tell application "Finder" to get properties
> 	end run
> end script
>
> run script Foo
>
> You will see that nothing in the run handler gets logged -- my point was simply
> that there's nothing particularly special about the log command in this respect.
> If other events appeared in the event log but not the log command, *that*
> would be a surprise.

Surely, I didn’t get your point. Part of the confusion stems from the fact the osascript,
not Script Editor, behaves differently in Yosemite. My main problem is how to make
a script run from the command-line print something to the terminal in a reliable way.
Clearly, log is not the answer. I will try with a Cocoa-based solution, as you have
suggested.

> I'm intrigued to know why handlers wouldn't work,


Then, see https://github.com/lifepillar/ASMake.

> but at the end of the day, what we think should or shouldn't work doesn't count
> for much: what matters is what does work.


Agree :) And working under constraints can actually yield better results :)

Thanks for your thorough explanation. I will experiment more and evaluate whether
a bug report or a feature request is worth filing!

Nicola

PS: this time, I have hard-wrapped the message. Sorry for the lengthy lines in
previous messages: I write messages in Mail.app and always forget about wrapping!


 _______________________________________________
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: Run script with arguments
      • From: Nicola Vitacolonna <email@hidden>
    • Re: Run script with arguments
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Run script with arguments
  • Next by Date: Re: Run script with arguments
  • Previous by thread: Re: Run script with arguments
  • Next by thread: Re: Run script with arguments
  • Index(es):
    • Date
    • Thread