List Info

Thread: how to create an appleevent from an objectspecifier




how to create an appleevent from an objectspecifier
user name
2006-04-17 17:14:55
i'd like to call a script from my application and want to
pass a  
parameter refering to an AppleScript document.
How can i create an NSAppleEventDescriptor refering to a
given  
ObjectSpecifier ?
 _______________________________________________
Do not post admin requests to the list. They will be
ignored.
Applescript-implementors mailing list     
(Applescript-implementorslists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mai
lman/options/applescript-implementors/nessto%40sharedlog.com


This email sent to nesstosharedlog.com
how to create an appleevent from an objectspecifier
user name
2006-04-18 02:15:54
if( [anObject isKindOfClass:[NSScriptObjectSpecifier class]]
)
{
     theDescriptor = [anObject _asDescriptor];
}
else if( [anObject respondsToSelector: selector(objectSpecifier)] )
{
     theDescriptor = [[anObject objectSpecifier]
_asDescriptor];
}


On 17 Apr 2006, at 10:14 AM, Ruediger Moeller wrote:

>
> i'd like to call a script from my application and want
to pass a  
> parameter refering to an AppleScript document.
> How can i create an NSAppleEventDescriptor refering to
a given  
> ObjectSpecifier ?
> _______________________________________________
> Do not post admin requests to the list. They will be
ignored.
> Applescript-implementors mailing list     
(Applescript- 
> implementorslists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/apple
script-implementors/d-j- 
> v%40earthlink.net
>
> This email sent to d-j-vearthlink.net

 _______________________________________________
Do not post admin requests to the list. They will be
ignored.
Applescript-implementors mailing list     
(Applescript-implementorslists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mai
lman/options/applescript-implementors/nessto%40sharedlog.com


This email sent to nesstosharedlog.com
how to create an appleevent from an objectspecifier
user name
2006-04-18 15:16:07
[copy, paste] 

thanx a lot

Am 18.04.2006 um 04:15 schrieb Dustin Voss:

if( [anObject isKindOfClass:[NSScriptObjectSpecifier class]] )

{

    theDescriptor = [anObject _asDescriptor];

}

else if( [anObject respondsToSelector: selector(objectSpecifier)] )

{

    theDescriptor = [[anObject objectSpecifier] _asDescriptor];

}


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )