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

Promblem in opening file through scripting?

New Here ,
Feb 11, 2009 Feb 11, 2009
I want to open a file in photoshop through javascript but i dont know how to specify path of the file in the script. I'm a mac user and new to scripting.........Pls help!!!!
TOPICS
Actions and scripting
662
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
Adobe
Community Expert ,
Feb 27, 2009 Feb 27, 2009
"~/Desktop/ /Filename"<br />or <br />"/Volumename/Foldername//Filename"<br />I guess. (With »« meaning: The names of the folders in sequence.) <br />But be aware that spaces and other keys might cause problems. <br /><br />Or do You mean You want to be allowed to select a file? <br />In which case I would use: <br />var theFile = File.openDialog ("open", false);<br />photoshop.open(theFile);<br /><br />And for more files one could use:<br />var theFiles = File.openDialog ("open", true);<br />for (var m=0; m<theFiles.length; m++) {<br />photoshop.open(theFiles)<br />};
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 ,
Feb 27, 2009 Feb 27, 2009
Thanks very much Christoph for paying your precious time for my solution.

Robin
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
Community Expert ,
Feb 27, 2009 Feb 27, 2009
LATEST
Yeah, well, took me some time to notice Your query  
Hope it helps though.
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