Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[JS] [Mac] Easy Question

New Here ,
Mar 14, 2008 Mar 14, 2008
Okay, I'm completely new to this. After searching the PDF documentation included with ID CS3, I found this line of code to place a graphic:

var myGraphic = myDocument.pages.item(0).place(myGraphicFile)

The problem with it, is that I don't want to use the Dialog box to select a file as used in the sample script (the variable myGraphicFile has the Dialog results in it). I want to always place the same file. But I don't know what the hierarchy is to reference my Desktop on a Mac, and the image on it.

One step farther ... is it possible to place a set graphic from a server?

Thanks so much!
Casey
TOPICS
Scripting
316
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 14, 2008 Mar 14, 2008
You know how I said it was an easy question? Well I found the answer! :)

Hard Drive Name:Users:Casey:Desktop:File Name.EPS

However, I am still interested in the answer to whether I can do this from a server location. Any thoughts?

Thanks!
Casey
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Mar 14, 2008 Mar 14, 2008
Hi Casey,

Yes, you can:
/Volumes/MyShareName/MyFolderName/MyFileName.EPS

Kasyan
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 14, 2008 Mar 14, 2008
LATEST
Kasyan,

It worked! THANKS!!

Casey
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines