InDesign Script Fix(Script server updated, version 328)

Easy fix on user side but the default Adobe InDesign Get Address script has the wrong app bundle id:

use framework "Foundation"
property NSURL : a reference to current application's NSURL

tell application id "com.adobe.illustrator"
    set myFP to file path of front document
end tell
set myUrl to POSIX path of myFP
set rawUrl to NSURL's fileURLWithPath:myUrl
set f to rawUrl's absoluteString

return f as string

Should be com.adobe.InDesign. Thank you.

use framework "Foundation"
property NSURL : a reference to current application's NSURL

tell application id "com.adobe.InDesign"
	set myDoc to front document
	set myFP to file path of myDoc
	set myDocName to name of myDoc
end tell

-- Combine the folder path and document name to create the full path
set fullPath to (myFP as text) & myDocName

-- Convert the full path to POSIX path
set posixPath to POSIX path of fullPath

-- Create NSURL from the POSIX path
set rawUrl to NSURL's fileURLWithPath:posixPath
set f to rawUrl's absoluteString

return f as string

Thank you very much for your report and your script, @Sakurada_Mio . We really appreciate it.

The script server has been updated with the fix. Script version is 328.

Thank you

1 Like