Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating new properties/coercions of standard types



How can I create properties of standard types? I'm thinking of something similar to the POSIX path of a file ('fsref'). I would also like to create custom object specifiers like POSIX path, file, alias (represented by a keyword and a string). Is this doable using Cocoa? My guess is no. So how else could I achieve it? It should be possible, as the Standard Additions are able to do it. More concretely, I'd like to define a URL type, getting AppleScript like:

URL "http://domain/path";

URL of (file "Path:To:A:File")

(URL "http://domain/path";) as string

etc.

Is this possible?

Thanks,
Christiaan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.