
: Arranges two images per row with an image width of 49%. : Arranges one image per row with an image width of 100%. Generate a set of image links, arranged in a desired grid size. Generate image set (Markdown).applescript.The script uses a function to add leading zeros to the file names ( addLeadingZerosToNumber). The variable leading_zeros controls the number of leading zeros of that counter. Do not edit or store anything else within the created file: It serves to store the running number for renaming the images. Insert the UUID into the UUID_of_imager_counter variable within the script. Copy the reference link of that file and extract the UUID part of the link, i.e., remove " x-devonthink-item://" from the link text, e.g., To make the script work, you first have to create an empty document in DEVONthink (of any kind however, the script is only tested for Markdown files). : A custom text with an attached increasing number will be added to the current comment. : A custom text will be added to the current comment. : The current image name will be added to the current comment. : Removes the current comment and leaves it empty. Remove current annotation and leave empty : The current comment will not be replaced. : The current comment will be replaced by a custom text and an increasing number will be attached to that text.

Replace with custom text + increasing number : The current comment will be replaced by a custom text. : The current comment will be replaced by the current image name. The original file names will be stored in the images' Finder comments for which the script offers the following options: It also makes images better distinguishable from other files in DEVONthink's search. This reduces file name ambiguity which, e.g., becomes a crucial point when using DEVONthink's WikiLinks feature. In this way, each renamed image file gets a unique file name. The number will be increased every time the script is run and for every renamed image. Renames the selected images according the scheme img#, i.e., the new names will consist of " img" and a number. Image auto-rename and annotate.applescript.Change DPI - a DPI changer and JPG converter.JPG compression – a JPG compressor and JPG converter.Generate image set – generates a set of image links, arranged in a desired grid size (1, 2, 3, 4.Image auto-rename and annotate – renames images according the scheme img# and stores the original file name as a comment.


This is a collection of AppleScripts for handling images in DEVONthink.
