• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Place file command in InDesign 2020 doesn't seem to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Place file command in InDesign 2020 doesn't seem to work


  • Subject: Re: Place file command in InDesign 2020 doesn't seem to work
  • From: Shane Stanley via AppleScript-Users <email@hidden>
  • Date: Tue, 7 Jan 2020 09:33:17 +1100

On 7 Jan 2020, at 3:00 am, Bert Groeneveld via AppleScript-Users
<email@hidden> wrote:
>
> How can I get the place file command to work?

Several alternatives work. One is to move the command:

tell application "Adobe InDesign 2020"
        set myDoc to document 1
        tell myDoc
                set myPage to page 1
                tell myPage
                        set myresult to make new rectangle with properties
{geometric bounds:{10, 10, 110, 110}}
                        tell myresult
                                set (content type) to graphic type
                                --place file pic
                        end tell
                end tell
        end tell
        place file pic on myresult
end tell

Another is to use an alias, but as a coercion:

        place pic as alias

A third is to use a «class furl» object or alias created outside InDesign's
scope:

set pic to "Macintosh_HD:Users:bertus:Documents:Applescript:DEEN:HIGHRES
IMAGES:91969 - Hutspot 500 gram-KLEIN.tif" as «class furl»

tell application "Adobe InDesign 2020"
        set myDoc to document 1
        tell myDoc
                set myPage to page 1
                tell myPage
                        set myresult to make new rectangle with properties
{geometric bounds:{10, 10, 110, 110}}
                        tell myresult
                                set (content type) to graphic type
                                place pic


This sort of change is pretty disturbing, so I hope you are reporting it as a
bug.

My strong personal preference would be the third way, moving the creation of
the file object outside InDesign's scope.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Place file command in InDesign 2020 doesn't seem to work
      • From: Bert Groeneveld via AppleScript-Users <email@hidden>
References: 
 >Place file command in InDesign 2020 doesn't seem to work (From: Bert Groeneveld via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: Place file command in InDesign 2020 doesn't seem to work
  • Next by Date: Re: hello guys
  • Previous by thread: Re: Place file command in InDesign 2020 doesn't seem to work
  • Next by thread: Re: Place file command in InDesign 2020 doesn't seem to work
  • Index(es):
    • Date
    • Thread