Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Twitter
Welcome to Reinvented Software Discussions. Please read this post before starting a new discussion.
Import document using Applescript
  • Hi,

    I'm using more than one Together library, how can I tell to Together using Applescript to import a specific file (using path), going into specific folder, in specific library and with a specific label?

    I'm quite new to Applescript and don't understand how to handle the import to a specific library, folder and label.

    Thanks for the help and code sample.
    By the way I'm loving Together which is really a great product.

    Kind regards
  • Hi, you need to get the folder and label beforehand:

    set matchingFolders to every group whose name is "The Folder Name"
    set theFolder to item 1 of matchingFolders

    For the label do much the same, but change "every group" to "every label". Then you can use "import files" as follows:

    import files "Users:username:Desktop:File.doc" to group theFolder ¬
    with label theLabel

    Together only works with one library at a time, so the file will be imported into the current library.
  • OK thanks, but how I can specify in which library search (I have many library)?
  • To do that, open the library first, e.g.:

    open "Users:username:Documents:Together:Default:Together.trlib"