RetouchPRO

Go Back   RetouchPRO > Tools > Software > Photoshop Scripting

Notices

Photoshop Scripting Learning and sharing for all platforms

Reply
 
LinkBack Thread Tools
  #1  
Old 09-28-2004, 08:47 AM
Junior Member
 
Join Date: Sep 2004
Posts: 1
path problems

Hello guys and girls,

I started scripting in photoshop with javascript a little while ago. I am currently making a script that automatically saves a copy of a psd as a resized TGA file in a user specified location. To get the file path and name I use a file browser box.

saveFile = File.openDialog("Select a file", "Bitmaps: *.tga");

Now, to make it easier for the user, I want the selected path to be saved with the psd file, so the next time the user wants to save that file, he doesn't have to fill in the path again. To do this, I would like to save

saveFile.absoluteURI (this contains the path as a string)

This works fine for short paths without spaces (eg. c:\test\test.tga).
But when the user selects a path that does contain spaces (eg.
c:\program files\test.tga), the string in saveFile.absoluteURI reads "/c/program%20files/test.tga" and when the path gets a little longer (eg. c:\documents and settings\my name\my documents\test.tga) saveFile.absoluteURI reads "~my%20documents\test.tga" instead of the whole path.

Does anyone know how to get around this problem?
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
Removing Background cybersip Photo Retouching 20 06-19-2007 08:05 AM
Color Problems imann08 Photo Retouching 24 03-10-2007 07:43 AM
Can't Stroke Path bestremera Photoshop Help 2 05-20-2006 07:28 AM
Skin problems, undefined... pure Photo Retouching 43 03-02-2006 03:01 PM
Two problems Mark Adams Image Help 23 05-22-2005 11:47 AM


All times are GMT -6. The time now is 11:25 AM.


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