Creating new properties/coercions of standard types
Subject : Creating new properties/coercions of standard types
From: Christiaan Hofman <email@hidden >
Date: Wed, 28 Nov 2007 16:47:51 +0100
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; bh=gNttDj4qCcjdcUQkD09alE0R0cbQQmYj2P7zTjcxQ1M=; b=fD5RSX5DhuWJkuy9FmgyCB3xztiOXH/2tARK/KLu/mNXstsEHxVlf2gbhs91oynZgHIis11ybSELm7mL/nGOnedCkQugQk57G60H6sxWODNJimZ3rIuOW23DjwoWH8RoCV0VrOQL9AJJWe/aCfwq7J8y/Ut9JtzlkiTnP1aY8uA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=r4+pXxhdQ9igaNA50A6tJdkmd5fP5z25/C/v1GPoYeNvbJomUzZOkLZ0kT6N1OPdwCLyr1D2eiB2NtCT6cPQNS7ndAcTEk0PuTp/BWMuQ75d69kE36VwuG+f8gzY/YnbGWUjD+zobDduI+b0g5QmVA0XXQXob92wbXr6umHzI9U=
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.