Goal: Run an AppleScript that will take a file path and convert it to a hookmark.
I have no AppleScript skills and so I’ve been using ChatGPT to create the script for me. Not matter what is suggested in the script it appears that none of the suggested scripts will create the necessary conversion.
ChatGPT suggested asking the following question of support:
“Why is make new bookmark with data
not exposed in my AppleScript dictionary, even though it’s in the public documentation?”
If it helps, here is the script that ChatGPT developed:
It appears that ChatGPT has concluded that there should be a dictionary entry to make a bookmark. I looked at the dictionary and couldn’t see any make book entries, although there is a “Make” but it’s not clear to me in my ignorance that this is what is needed.
So in support of ChatGPT I’m asking “Why is make new bookmark with data
not exposed in my AppleScript dictionary, even though it’s in the public documentation?”
Aside: I wanted to send this directly to support but it appears there is no direction support function, is that correct.
if it helps here is the script that ChatGPT developed
set filePathString to “/Users/…/Desktop/testFile.txt”
set filePath to POSIX file filePathString
tell application “Hook”
set hookURL to make new bookmark with data filePath
set theLink to address of hookURL
end tell
display dialog theLink
Thanks