Quantcast
Channel: DEVONtechnologies Community - Latest posts
Viewing all articles
Browse latest Browse all 16117

AppleScript for new document

$
0
0

Interesting. Until now, I thought that commands are associated with certain classes. And “create location” is, according to the scripting dictionary, associated with “Application”. OTOH, the class database doesn’t provide any commands.

Now, it seems that tell database "bar" to create location "foo" is equivalent to tell application "DEVONthink 3" to create location "foo" in "bar". Is that documented somewhere, or is it a kind of syntactic sugar provided behind the scenes in DT?

If so, would the same apply for, for example
tell record to addCustomMetaData "foo" for "bar"
being equivalent to
tell Application "DEVONthink 3" to addCustomMetaData "foo" for "bar" to record

Aside: Application.databases["foo"].createLocation("/INBOX") (the JXA equivalent of tell database … throws an error in Script Editor -2700 “Named parameters must be passed as an object”.


Viewing all articles
Browse latest Browse all 16117

Trending Articles