> On Jan 12, 2022, at 11:50, jj <[email protected]> wrote:
> An easy way to get the URI of a document from the finder on macOS Monterey:
This is easy enough to automate...
-Chris
--------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2022/01/15 18:42
# dMod: 2022/01/15 18:42
# Appl: Finder
# Task: Get File-URLs of Selected Items in the Front Finder Window.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Finder, @File-URLs, @Selected, @Items
--------------------------------------------------------
tell application "Finder"
set finderSelectionList to selection as alias list
if length of finderSelectionList = 0 then error "No files were selected in
the Finder!"
set theItem to item 1 of finderSelectionList
repeat with i in finderSelectionList
set contents of i to URL of i
end repeat
end tell
set {oldTIDS, AppleScript's text item delimiters} to {AppleScript's text item
delimiters, {""}}
set the clipboard to finderSelectionList as text
set AppleScript's text item delimiters to oldTIDS
--------------------------------------------------------
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need technical support, please email "[email protected]" rather than
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/72F5A4AF-6549-4E7E-A5AF-8961D4803B28%40gmail.com.