Skip navigation
dean@transcon
Currently Being Moderated

"Place" command does not work

Oct 14, 2010 5:05 AM

Hi,

 

I changed some Applescripts over to InDesign CS5 from CS3 and now they do not work. Basically all the Applescript does is place a graphic in a rectangle and size it to fit. The problem is that I keep getting an error that says, ...

 

Adobe InDesign CS5 got an error: "Macintosh HD:Users:User:Desktop:untitled folder:1023SW.tif" doesn’t understand the place message.

 

I get the exact same error when I run the "Image Catalogue" script that came with Adobe InDesign CS5. The script does everything but place the image. It works just fine in CS3.

 

Can anyone please help me with this? A sample of the script is below. This is the one that comes with CS5 but it does not work

 

set myFile to item myCounter of myFiles
            set myRectangle to rectangle myCounter of myDocument
            tell myRectangle
                set myGraphic to place (myFile as string)
                --The place command returns a list, so get the
                --first item of the list.
                set myGraphic to item 1 of myGraphic
                set label to myFile as string
                if myFitProportional is true then
                    fit given proportionally
                end if
                if myFitCenterContent is true then
                    fit given center content
                end if
                if myFitFrameToContent is true then
                    fit given frame to content
                end if
            end tell

 

Any help would be appreciated.

 
Replies
  • Currently Being Moderated
    Oct 14, 2010 10:08 AM   in reply to dean@transcon

    Looking at other posts I found out that I have to use the "alias" to place the file so my problem is solved.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 14, 2010 4:12 PM   in reply to Dean Crapo

    You probably just need to remove the "as string".

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2012 2:49 PM   in reply to Dean Crapo

    Can you please show how you used the "alias" to place the graphic?

    I am having exactly the same problem with a script I created and used to use all the time to place images.

    I will really appreciate it!!

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2012 3:24 PM   in reply to meRocioG

    OK, I figured it out also.

    In case anybody out there is having the same problem, this is the line of code I used:

     

    set myGraphic to place (myArtFile as alias)

     

    So I just changed "as string" to "as alias" and it worked.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points