-- Open record in default app
do shell script "open " & quoted form of theRecord_Path
Or if you donāt want the default app:
-- Open record in external app
set theRecord_UUID to "18FFDF32-AB47-4F06-B03D-DC82256FD4C5"
set theAppName to "BBEdit"
set theLink to "x-devonthink-item://" & theRecord_UUID & "?openexternally=1&app=" & theAppName
open location theLink
If an app name contains spaces you have to replace them with %20, e.g.
-- Open record in external app
set theRecord_Path to "/the/record/path/myRecord.md"
set theAppName to "Nisus Writer Pro"
set theApp to application theAppName
set theAppPath to POSIX path of (path to theApp)
do shell script "open -a " & quoted form of theAppPath & space & quoted form of theRecord_Path
now im trying to create a group in the same folder as the excel file is but with no sucess
tell application id "DNtp"
set theGroup to get record with uuid "2771EE93-7E42-4F0C-82F6-341B6C686D5E"
set root of viewer window 1 to theGroup
create record with {name:PENDING, type:group} in theGroup
end tell
This is not an answer to your question, and I suppose you already know, but āā§O will open the currently selected document in the default application instead of DEVONthink.