Re: Getting mad with simple applescript handling (kAEGetURL)
Re: Getting mad with simple applescript handling (kAEGetURL)
- Subject: Re: Getting mad with simple applescript handling (kAEGetURL)
- From: Greg Robbins <email@hidden>
- Date: Tue, 17 Jun 2003 12:01:34 -0700
At 4:54 PM +0200 6/17/03, Yann Bizeul wrote:
>
- (void)getUrl:(NSAppleEventDescriptor *)event withReplyEvent:
>
(NSAppleEventDescriptor *)replyEvent;
>
....can somebody tell me where to get the URL ?
Try
NSString* url = [[event descriptorForKeyword:keyDirectObject] stringValue];
per <
http://www.scripting.com/midas/geturl.html>:
---
Suite name: URL Suite
Suite description: Standard suite for Uniform Resource Locators
Suite code: 'GURL'
The geturl Event
geturl: Get a URL and display it in a window or save it to a file
geturl string -- the URL
[to <file>] -- destination file
Result: small integer -- result code
Event class: 'GURL'
Event id: 'GURL'
Direct object parameter type: 'TEXT' (typeChar)
Optional destination file parameter:
keyword: 'dest'
type: 'fss ' (typeFSS)
Result type: 'shor' (typeShortInteger)
---
Greg Robbins
_______________________________________________
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.