Re: building an AppleScript editor app
Re: building an AppleScript editor app
- Subject: Re: building an AppleScript editor app
- From: sqwarqDev <email@hidden>
- Date: Sun, 07 Dec 2014 19:26:49 +0700
> On 7 Dec 2014, at 18:59, sqwarqDev <email@hidden> wrote:
>>> AEDescriptor is:
>>> <NSAppleEventDescriptor: 'capp'{ 'desk':'obj '{ 'form':'name', 'want':'cfol', 'seld':'utxt'("Fusion:Users:sphil:Desktop:"), ..., ....
>
>> What you've shown above is just the description string of the NSAppleEventDescriptor. It's not its native content.
>
> Acutally, its the result of
>
> NSAppleEventDescriptor *result =[_userScript executeAndReturnError:&myError];
Just to add a bit more clarity, lest we end up going down a rabbit hole here (I've been in this warren before when discussing AppleScript...), the AEDescriptor that I gave an example of is exactly the same as what you'll see if you run a script in Script Editor, then leave your cursor hovering over the Replies or Events panels (Accessory view) at the bottom of Script Editor.
After a second or two, you'll see a popup view with the raw AppleScript result code, which Script Editor magically turns into human readable code in the Accessory view panel.
I am looking for any tips on how to go about performing the same trick.
Best
Phil
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden