Re: Place file command in InDesign 2020 doesn't seem to work
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