

However I’ve found that while writing it’s better to use one (or some) fixed test records via get record with uuid. One way to prevent this is to display a dialog. While writing scripts it happened often that I didn’t immediately grasp why nothing … nothing … ? … That happens especially when a script does not yet work the way I want.


Easy access to Google search Easy access to Google Search, no matter where you are on the web. When nothing happens that’s a problem for me. Already in desktop mode Make Google your default search engine. If the list is empty, the repeat with pass that along and nothing will (logically) happen. Using this, there is no need to set a variable to selected records and check if the list is empty. Repeat with theRecord in (selection as list)
#BETTERZIP SET AS DEFAULT DOWNLOAD#
If so use at least Script Editor.app instead (or download Script Debugger).īLUEFROG: tell application "DEVONthink 3" PS Not sure where you are developing your script, if it’s in Automator then that’s a bad place to write it, I think. (You can ignore the part that’s testing for the correct record type) If the error_number is not -128 then display alert "DEVONthink" message error_message as warning If the error_number is not -128 then display alert "Marked 2" message error_message as warning On error error_message number error_number If you want to use AppleScript take a look at this example: - Open in Marked 2 You can assign shortcuts via system preferences or CustomShortcuts.app. If all you want is to open records in a specific app then there’s no need to use AppleScript or Automator. In finder, I can achieve “open selected files with specific application” with the following automator service In some cases, the app I want to use is not the default app, so I can’t do that with ⌘⇧O.
