![]() |
| |||||||
| Photoshop Scripting Learning and sharing for all platforms |
| | Thread Tools |
|
#1
| |||
| |||
| Hi.. 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('http://www.myDomain.com/data.php'); dbText.open ('r'); and then read the lines into a array.. anyone tried this? any suggestions? Thanks Gez |
|
#2
| ||||
| ||||
| Hi there, Gez, welcome to RetouchPRO Sorry, I can't help "off the bat". If nobody replies before, I'll do some homework tonight. Rô |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| The PSJS implementation does not support the 'new File("http://whatever.com")' 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. |
| Thread Tools | |
| |
| | ||||
| 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 01:14 AM |
| Delete files via Script in Photoshop? | scooter41 | Software | 4 | 02-13-2007 04:14 PM |
| rules of third script or action? | Lasse | Photoshop Scripting | 2 | 08-17-2005 08:38 PM |
| I need a Script like a mail merge! | clickin | Photoshop Scripting | 4 | 02-17-2005 06:23 PM |