Go Back   RetouchPRO > Tools > Software > Photoshop Scripting
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read

Photoshop Scripting Learning and sharing for all platforms

script loading datafile over http

Thread Tools
Old 06-27-2005, 03:57 AM
gezmond gezmond is offline
Junior Member
Join Date: Jun 2005
Posts: 1
Question script loading datafile over http


I am writing a script to read a CSV file and place text in layers, etc.. it works using a local datafile, but as everything we do is database or XML managed, I'd like to call a script to return the data.. but I can't get it to work over http. I am trying to us this:

var dbText = new File(''); ('r');

and then read the lines into a array..

anyone tried this? any suggestions?

Reply With Quote top
Old 06-27-2005, 06:18 AM
byRo's Avatar
byRo byRo is offline
Senior Member
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,609
Hi there, Gez, welcome to RetouchPRO

Sorry, I can't help "off the bat". If nobody replies before, I'll do some homework tonight.

Reply With Quote top
Old 09-30-2005, 01:42 PM
westworld westworld is offline
Junior Member
Join Date: Sep 2005
Posts: 1
some ideas

I dont know what scripting language u use. On Windows pc I'd say, go for the wget application. This is a command line tool that lets you download files from internet. Then just bind it all together with vbscript. (done this with xls files and it worked great). Or you might try using javascript, I think you can use the xmlhttp library (the new tool to use:-)= buzz about ajax is about this library). Don't know if this works on mac as well. Thy searching google for ajax or xmlhttp. There's a few good guides on how to use it.(returns text or xml)

Hope this helped
Reply With Quote top
Old 10-02-2005, 11:07 AM
xbytor xbytor is offline
Join Date: Aug 2004
Posts: 35
The PSJS implementation does not support the 'new File("")' syntax. You will need to write a script that you invoke via 'File.execute()'. Taking this route lets you choose from a bunch of different options, including stuff like perl, python, lynx, and wget. I'm using the cygwin environment, so perl would be a natural choice for me.
Reply With Quote top

  RetouchPRO > Tools > Software > Photoshop Scripting

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with psp 9.0-I ran a script I can't get rid of maryle Software 1 09-02-2007 02:14 AM
Delete files via Script in Photoshop? scooter41 Software 4 02-13-2007 05:14 PM
rules of third script or action? Lasse Photoshop Scripting 2 08-17-2005 09:38 PM
I need a Script like a mail merge! clickin Photoshop Scripting 4 02-17-2005 07:23 PM

All times are GMT -6. The time now is 02:49 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved