RetouchPRO

Go Back   RetouchPRO > Tools > Software > Photoshop Scripting

Notices

Photoshop Scripting Learning and sharing for all platforms

Reply
 
LinkBack Thread Tools
  #1  
Old 06-27-2005, 02:57 AM
Junior Member
 
Join Date: Jun 2005
Posts: 1
Question script loading datafile over http

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #2  
Old 06-27-2005, 05:18 AM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goiânia, Brazil
Posts: 1,548
Hi there, Gez, welcome to RetouchPRO

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #3  
Old 09-30-2005, 12:42 PM
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #4  
Old 10-02-2005, 10:07 AM
Member
 
Join Date: Aug 2004
Posts: 35
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
Reply

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 On
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 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


All times are GMT -6. The time now is 10:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 Doug Nelson. All Rights Reserved




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51