🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15177

[AS] proper syntax for placing non-text file in existing item

#15177
From: gijs122
Date: Mon, 22 Dec 2003 10:07
17 lines
1338 bytes
I would like to place a non-text file into an existing rectangle object.
Based on the reference and on my readings here, I thought the code below would work. However, it results in an error:
'InDesign 2.0.2 got an error: Can't get "Macintosh HD:test.eps"'
I am very sure the file exists and placing manually is no problem.
Maybe something is wrong with my syntax ?

tell application "InDesign 2.0.2"
  set myDoc to active document
  set iGroups to (count groups in myDoc)
  repeat with i from 1 to iGroups
    set myAd to page item 1 of group i of myDoc
    set myFile to ("Macintosh HD:test.eps")
    tell insertion point 1 of myAd
      place myFile
    end tell
  end repeat
end tell
Technical Details
Message-ID: <2ccf0ac9.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,25dda918d253db9c,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-22 02:07:47 PST
From: gijs122@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: [AS] proper syntax for placing non-text file in existing item
Message-ID: <2ccf0ac9.-1@webx.la2eafNXanI>
Date: Mon, 22 Dec 2003 02:07:17 -0800
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit