Re: technical Applescript question: enthusiasm among the members of the AppleScript engineering team [long]
Re: technical Applescript question: enthusiasm among the members of the AppleScript engineering team [long]
- Subject: Re: technical Applescript question: enthusiasm among the members of the AppleScript engineering team [long]
- From: Rosyna <email@hidden>
- Date: Fri, 29 Mar 2002 10:04:24 -0700
[[ASKScript scriptWithText:@"tell application \"Finder\" to
activate"] execute];
;)
There's also a scriptWithContentsOfFile: and scriptWithContentsOfURL:
These are in the AppleScriptKit framework. You may have to make your
own header for it though.
Ack, at 3/28/02, Charles Srstka said:
I agree that AS Studio is pretty cool. I only wish it had a nice
easy function or method that you could call from Objective-C code to
send an applescript.
Being able to do something like:
[NSScriptStudio sendScript:@"tell application \"Finder\" to activate"];
or
NSSendScript(@"tell application \"Finder\" to activate");
would be really nice, as would something like
[NSScriptStudio runScriptAtPath:[[NSBundle mainBundle]
pathForResource:@"someScript" ofType:@"applescript"]];
as would
[NSScriptStudio runScriptNamed:@"someScript"];
which would do the same as the previous line. Of course, I know I
can just fork/exec osascript, but it seems like it would be more
elegant to do it with an API, and probably faster as well.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
---
Please include any previous correspondence in replies, it helps me
remember what we were talking about. Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.