Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.apps > #27922 > unrolled thread
| Started by | Mike Cook <mcham@NOTyahoo.com> |
|---|---|
| First post | 2015-02-22 16:08 -0800 |
| Last post | 2015-02-23 18:31 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.sys.mac.apps
Another AppleScript question Mike Cook <mcham@NOTyahoo.com> - 2015-02-22 16:08 -0800
Re: Another AppleScript question Jolly Roger <jollyroger@pobox.com> - 2015-02-23 00:43 +0000
Re: Another AppleScript question Jolly Roger <jollyroger@pobox.com> - 2015-02-23 00:44 +0000
Re: Another AppleScript question rijk <rijk@blah.invalid> - 2015-02-23 18:31 +0100
| From | Mike Cook <mcham@NOTyahoo.com> |
|---|---|
| Date | 2015-02-22 16:08 -0800 |
| Subject | Another AppleScript question |
| Message-ID | <0001HW.D10FAF720268B148B01029BF@news.eternal-september.org> |
I have created a script and saved it as an Application. When I click the Run
button from within the Script Editor, it executes as expected, no errors.
But if I double-click on the application file I just created I get the
notice:
"The command exited with a non-zero status," and the script doesn't give
the result that it should.
I would expect this to run just like it did from within the editor.
Why does this script not run?
Thanks!
[toc] | [next] | [standalone]
| From | Jolly Roger <jollyroger@pobox.com> |
|---|---|
| Date | 2015-02-23 00:43 +0000 |
| Message-ID | <ckvbd0FkucgU2@mid.individual.net> |
| In reply to | #27922 |
On 2015-02-23, Mike Cook <mcham@NOTyahoo.com> wrote: > I have created a script and saved it as an Application. When I click the Run > button from within the Script Editor, it executes as expected, no errors. > > But if I double-click on the application file I just created I get the > notice: > > "The command exited with a non-zero status," and the script doesn't give > the result that it should. > > I would expect this to run just like it did from within the editor. > > Why does this script not run? Provide the script so we can see it please. -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR
[toc] | [prev] | [next] | [standalone]
| From | Jolly Roger <jollyroger@pobox.com> |
|---|---|
| Date | 2015-02-23 00:44 +0000 |
| Message-ID | <ckvbfkFkucgU3@mid.individual.net> |
| In reply to | #27922 |
For future reference, there is a news group dedicated to AppleScript topics at: alt.comp.lang.applescript -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR
[toc] | [prev] | [next] | [standalone]
| From | rijk <rijk@blah.invalid> |
|---|---|
| Date | 2015-02-23 18:31 +0100 |
| Message-ID | <rijk-401BA0.18313923022015@news.xs4all.nl> |
| In reply to | #27922 |
[crossposted and follow-ups set to <news:alt.comp.lang.applescript>] In article <0001HW.D10FAF720268B148B01029BF@news.eternal-september.org>, Mike Cook <mcham@NOTyahoo.com> wrote: > I have created a script and saved it as an Application. When I click the Run > button from within the Script Editor, it executes as expected, no errors. > > But if I double-click on the application file I just created I get the > notice: > > "The command exited with a non-zero status," and the script doesn't give > the result that it should. Sounds like you're using "do shell script". Make sure to read <https://developer.apple.com/library/mac/technotes/tn2065/_index.html>. Likely culprits are with handling of stdout and stderr, (relative) paths, privileges and such. > I would expect this to run just like it did from within the editor. > > Why does this script not run? Depending in part on your OS version, Script Editor may be another context than the one your applet runs in.[*] That context in turn might be relevant in yet other ways to "do shell script" itself. [*] In AS, "me" refers to the script itself. But when run inside Script Editor, it refers to Script Editor. That is, it used to. Apple changed that somewhat recently, but I don't recall in when exactly. -- "-- \n"
[toc] | [prev] | [standalone]
Back to top | Article view | comp.sys.mac.apps
csiph-web