In a scriptable app I'd like to make an array of files accessible
through AppleScript. I thought of adding an <element> in the .sdef
with type "file", something like this:
However, when I try to access it I get a log message complaining that
"file" is not a class (even though it does work). So can I only use
class elements (and not other value types) as the type of an element?
If so, how could I add a to-many property of files? I don't seem to
be able to create a "file" class as it conflicts with the built-in type.
A similar problem, I'd like to similarly add URLs. However there is
no (built in) URL type, so they're simply strings (type="text").
However, the name of the element should be "URL", not "text". So I'd
like to declare:
However, element unfortunately does not have a "name" attribute, so
this doesn't work (apart from the same problem as for files, as text
is not a class). So how should I declare this case?