Adobe made some changes in the Applescript model at version 19.4
“file path” of “links” are now POSIX path style and not HFS. Anybody knows if there is some documentation on the changes somewhere? I cannot find it over at adobe.com, but I am may be seeking in all the wrong places.
tell document 1 of application “Adobe InDesign 2024” to get (file path of every link)
—> v19.3 returns “Macintosh ADHD:folder:image.jpg”
—> v19.4 returns “/Volumes/Macintosh ADHD/folder/image.jpg”
Hi
I don’t know if it is a mistake or an intentional choise
I’ve resolved adding a line to my scripts
tell app “Adobe InDesign 2024”
set mypath to file path of link 1 of active document as string
if mypath contains “/” then set mypath to my posixfile(mypath) – add this line
end tell
–add this function to convert / path to : path
on posixfile(mypath)
return POSIX file mypath as string
end posixfile
I see I worded this poorly. The conversions are pretty straight forward, (but cubersome to do as to handle InDesign versions both before and after 19.3).
I mostly wonder what other changes were made? Anyone knows where to look for documentation?
This quiet change took by surprise many users. Especially those who use data merge that includes image paths - this screwed up their established workflows they used for years.