Jörgen Stahle

My feedback

  1. 4 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    7 comments  ·  Adobe InDesign: Bugs » Graphics/Images/Assets  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Jörgen Stahle commented  · 

    However – strangely enough – a 'file' reference also works when defined by the script outside the InDesign tell block. So this also works:

    set imageFile to POSIX file "/path/to/IMG_2592.jpeg"
    --> file "Macintosh HD:path:to:IMG_2592.jpeg"

    set textFile to POSIX file "/path/to/test.txt"
    --> file "Macintosh HD:path:to:test.txt"

    tell application id "com.adobe.indesign"
    tell rectangle 1 of document 1
    place imageFile
    end tell
    tell text frame 1 of document 1
    place textFile
    end tell
    end tell

    An error occurred while saving the comment
    Jörgen Stahle commented  · 

    The different ways to refer to a file seems to be fever with InDesign on Catalina . Using 'file' directly in the Indesign tell block does nor work for example. But using 'alias' with a HFS-path still works:

    tell application id "com.adobe.indesign"
    tell rectangle 1 of document 1
    place alias "path:to:image.jpeg"
    end tell
    tell text frame 1 of document 1
    place alias "path:to:text.txt"
    end tell
    end tell

    An error occurred while saving the comment
    Jörgen Stahle commented  · 

    Confirming the problem. I haven't found any workaround.

Feedback and Knowledge Base