• 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: Problems running applescripts...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems running applescripts...


  • Subject: Re: Problems running applescripts...
  • From: Axel Luttgens <email@hidden>
  • Date: Tue, 2 Sep 2008 17:32:47 +0200

Le 2 sept. 08 à 11:12, Matthew Loose a écrit :

Hi,
I have a really basic problem that I am sure someone can explain to me...


I have a very simple applescript

say "hello world"
say "this is the second command"

That's it!

The problem is as follows. When I run that applescript from the command
line, it works and you hear the two messages. I have a perl script that
calls the applescript and if I run that from the command line, it works.
However, when I execute the perlscript via a web interface, the applescript
executes, but only says the first line - the second command is ignored.
Obviously, the applescript I eventually want to run is more complex than the
example given here, but I don't understand why only one line executes. If it
was a permissions issue, I would assume for an all or nothing response -
this seems very strange behaviour!

Hello Matthew,

If I understood you correctly, you are running the Perl script in a web server, say as a CGI?
If yes, the script in fact is running as user www, outside of any Window Server session. Should this be the source of your problem, some info might be written in Apache's error_log; could you have a look at it while invoking the script?


Anyway, as suggested by Philip, /usr/bin/say could be the way to go.

HTH,
Axel  _______________________________________________
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: 
 >Problems running applescripts... (From: "Matthew Loose" <email@hidden>)

  • Prev by Date: Re: Problems running applescripts...
  • Next by Date: Re: osadecompile misfires with 2 Apple supplied scripts
  • Previous by thread: Re: Problems running applescripts...
  • Next by thread: Dialog command
  • Index(es):
    • Date
    • Thread