11/14/2022 0 Comments Create a dropbox link![]() The remainder of the script is similar to the previous one, except that we embed a URL into the body of the main message. Which I hope will mean that we only need one version of the script, let me know how this works. Instead we call the application by id tell application id "" I’ve started to modify the scripting of ChemBioDraw, instead of calling the application by name which means we need different versions of the script for the “Std”, “Pro” and “Ultra” versions of ChemBioDraw. We then tell ChemBioDraw to save the frontmost document to the Dropbox Folder in both CDX and PNG format. The next part creates the files and file alias’ We then construct the URL, you will need to replace the “yourID” with your unique identifier. property target_path : path to desktop as string -if you want to keep original files set target_path to ( path to home folder ) as string set target_path to target_path & "Dropbox:Public:" The first part of the script creates the path to the Dropbox Public folder, this will be used by the script to save the file in the correct place. Where “12333897” will be replaced by your unique identifier and we can create a URL in this format to any new file saved in the Dropbox Public folder. ![]() If you now paste that into the script editor it should be something like this The Dropbox Public Linkįor this script to function we need to be able to generate the link to a file in your Dropbox Public folder, the easiest way to get an example of the format of the URL is to put a file in your Dropbox Public folder then right-click (or control-click) on the file and navigate down to “Dropbox” and then follow the submenu to “Copy Public Link”. ![]() I thought the easiest way to demonstrate this was to modify the previous script used to email chemical structures. With the imminent demise of MobileMe a couple of people have asked me for a script that does the same but uses Dropbox. Copy File to Dropbox Folder and Create email message containing link.Ī while back I posted a script that copied a file to a users MobilMe Public folder and created an email link to that file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |