AppleScript - "Where is System Events"
Sarah Reichelt
sarah.reichelt at gmail.com
Thu May 1 17:28:43 EDT 2008
On Thu, May 1, 2008 at 9:18 PM, Ian Wood <revlist at azurevision.co.uk> wrote:
> Sometimes I need to find out what applications are currently running on a
> Mac, and I've been using the following code to get a list:
>
> put "tell application" && quote & "System Events" && quote & "to get name
> of every process" into tS
> do ts as applescript
>
> This normally returns an AppleScript list of application names, but I've
> had a couple of people complaining that they are getting prompted to choose
> an application with the warning "Where is System Events".
>
> Anyone have any clues?
Yes, you have a space after Events and before the quote so you are
trying to tell app "System Events ", not "System Events".
Change the second double ampersand to a single and it all works fine.
Cheers,
Sarah
More information about the use-livecode
mailing list