Skip to main content
Participant
November 30, 2019
Question

How to access web file or auto fill / bypass file.opendialog

  • November 30, 2019
  • 1 reply
  • 242 views

Hi

I've written a script to automatically generate layouts in illustrator based on data in a csv file.

 

Is there a way to reference a file located on a website ie http://www.site.com/file1234.csv

I have searched around but have had no luck.

 

I have managed to load it in by copying and pasting the address into a File.openDialog, but to streamline things would rather the user only have to enter the reference number (1234 in the example above) and the rest be put in by the script.

 

So if it is not possible to reference a web based file is there a way I can achieve the above with File.openDialog defaulting to specified file name?

 

Thanks

 

[Removed unnecessary hyperlink by MOD ]

    This topic has been closed for replies.

    1 reply

    Ten A
    Community Expert
    Community Expert
    December 3, 2019

    Illustrator's JavaScript does not support Socket Object.

    However, You can use several ways, External Object in ExtendScript, CEP, shell commands...