• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting mad with simple applescript handling (kAEGetURL)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • [ SOLVED ] Getting mad with simple applescript handling (kAEGetURL)
      • From: Yann Bizeul <email@hidden>
References: 
 >Getting mad with simple applescript handling (kAEGetURL) (From: Yann Bizeul <email@hidden>)

  • Prev by Date: Re: CDEF's in Cocoa?
  • Next by Date: Creating packages
  • Previous by thread: Getting mad with simple applescript handling (kAEGetURL)
  • Next by thread: [ SOLVED ] Getting mad with simple applescript handling (kAEGetURL)
  • Index(es):
    • Date
    • Thread