Re: Tiger: System Events now runs scripts
Re: Tiger: System Events now runs scripts
- Subject: Re: Tiger: System Events now runs scripts
- From: Hudson Barton <email@hidden>
- Date: Thu, 5 May 2005 11:52:36 -0400
Hmm. So you're saying perhaps that the following would work
regardless of whether it's Tiger or Panther:
try
run script (alias y)
on error
tell application "System Events" to do script (alias y)
end try
Is that correct? I don't have Tiger yet to do any testing. Note
that in Panther, "System Events" is not accessible when run from the
Scripts Menu, so I guess one has to try the Panther method before
trying the Tiger method.
H.
At 4:06 PM -0600 5/4/05, Gnarlodious wrote:
And apparently ONLY System Events:
set inputScriptPath to "Finder:InputFinderItems" -- relative path to
the input script
tell application "Finder" to ((container of (path to me)) as string)
& inputScriptPath
tell application "System Events" to set masterList to do script result
Applescript cannot run another script anymore.
So, all my scripts that call other scripts have to be fixed. But now
relative paths are fully supported through Finder.
It's a good change.
-- Gnarlie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden