Having trouble with the File and Folder Objects (PSCS3 javascript on Win)
I'm having trouble successfully creating a new folder on my windows platform, using javascripts in photoshop. In ExtendScript Toolkit 2, set to Adobe Photoshop CS3, I've tried:
var myFolder = new Folder("/c/Documents and Settings/vcastelo/My Documents");
myFolder.create();
and
var myFolder = new Folder("/c/Documents and Settings/vcastelo/My Documents");
is this right? what am I doing wrong? It's pretty basic stuff, I know but I can't figure is out... any help would be greatly appreciated.
[email protected] wrote:
> oh I see, I just figured it out... the drive designation isn't case sensitive... but i didn't add the name of new folder to the destination path.
Yep.
>
> var myFolder = new Folder("c:/Documents and Settings/vcastelo/My Documents/data");
> myFolder.create();
The "/c/Documents and Settings/vcastelo/My Documents/data" form works, too, and
should be preferred.
Here's an extreme example as to why this is a good idea:
I work in an XP/cygwin environment, so I added links to all of my drives in my
root cygwin folder. As a result, the path /p/Pictures/2008-05-05 is the same on
the bash command line (and other tools) as it is in PSJS. I carried this over to
my Mac, as well. I mount P: drive in OSX then setup links so that
/p/Pictures/2008-05-05 is also the same on the Mac. This has vastly simplified
my work. The only time I use system-specific pathnames is in a script's UI.
-X
for photoshop scripting solutions of all sorts
contact: [email protected]
Similar Messages
-
Having trouble with wav files and sample rates
Hi ,I am having trouble with wav files and sample rates .I have been sent multiple projects on wav as the main instrumental ; I wish to record in 48.000kHz .Now comes the problem.When I try to change the project to 48k It seems to pitch up the track.I can't have them send the logic/project file as most have outboard synths,different plug ins etc.This particular case the producer has recorded the synth task in 41.000 kHz .My successful outcome would be to be able t create a project file in 48 kHz .And NOT pitch up whne I add the instrumenta wav file .Any help would be gratefully recieved,this is my first post so any mistakes I may have made go easy
You'll have to convert the actual synth audio file file that the producer gave you to 48kHz. You can do this in the audio Bin in Logic.
-
Having trouble with arrow keys and moving objects
All of a sudden I can't move objects in Illustrator (CS4). They move around in a jerky fashion and make big jumps with the arrow keys. I tried restarting, resetting preferences, playing with mouse. What could be causing this and how can I fix it?
View->snap to grid?
-
What can i do where can i go that its safe to use my waranty?
Yes ,
I do ,
But really thats exactly what i didnt want to do ,.
Going through all the back and fowards shipping,.
But thank you for ur help
God Blees U -
Having trouble with the lion os free update
Having Trouble with the serial # and uplaoding the info needed to get the free update for the Lion os system.
Sorry, downgrading is not supported.
-
i am having trouble with the email that is confirming my security questions, it says it has sent it to my gmail but i have checked the email account and nothing has been sent, i have waited 24 hours for it and still nothing.
Hi Cara154,
If you are having issues receiving the email verification for your security questions, you may find the following article helpful:
When you provide a rescue email address during Apple ID creation, you will receive an email from Apple to verify that the email address provided is accurate. If you don't see an email from Apple asking you to verify your rescue email address, you may want to check your SPAM folder. If you still haven't received the email from Apple, you can sign in to My Apple ID (appleid.apple.com) to resend your rescue email address. To resend your verification email, click on Password & Security. Then, click the Resend link located in the Rescue Email Address section.
Apple Support: Rescue email address and how to reset Apple ID security questions
http://support.apple.com/kb/ht5312
Regards,
- Brenden -
Help
I need any help i can get, im having trouble with the app find my iphone. I have lost my iphone, checked on the computer, and somehow, took it away so how do i get it back??If you are saying that after signing into iCloud it is telling you device is not found, it could be for any number of reasons. If the battery is dead, if the SIM has been removed, or if someone else has the phone and they have restored it, it will not be shown. Also, if you located it once and then sent a remote wipe, it disables the abililty to locate the phone with Find My iPhone.
-
I have a Mac, IPad, I phones, and 2 Windows Vista Pcs and I'm having trouble with the Windows Laptop staying connected. I have to re-boot after an extended period of time please help. Thanks!
I have a Mac, IPad, I phones, and 2 Windows Vista Pcs and I'm having trouble with the Windows Laptop staying connected. I have to re-boot after an extended period of time please help. Thanks!
-
I am having trouble with the Jpeg icons and also now thumbnails not being visable in bith teh Apple finder and now also Adobe Bridge. Can anyone shed any light on this ?
Argh - once again, I find my solution right after posting this. Left out one modification to the SWIG script, now it runs in 29 seconds vs C 16 seconds, I can live with that.
-
I rented Trouble with the Curve and haven't it yet and I when I went to watch the movie it tells me the file can not be found - please help
Yes, thank you. My apologies, I was typing one handed and did not add that.
Anyway, I have tried deleting the cache, deleting my pics and then re-syncing, etc. and nothing is working This is very frustrating, as I had no problems up until about 2 weeks ago, and now all of a sudden, I have this issue......UGH! -
Having trouble with The speed of my streaming wifi and internet connectionn work fine, ir seems The problem starter when i upares my airport bases, any support would be appriciated
Welcome to the Apple Community.
What exactly are you trying to stream when you have thes problems. -
I'm having trouble with the folder "Automatically add" function. She opens a folder "not added". My machine is a Vaio with Windows 7 home basic antivirus using Microsoft. Regards.
Its a 64 bits.
-
I'm having trouble with the purchase I didn't make on 12/01/14 and it says I made 4 unauthorized purchases any help?
This is a user to user support forum. There is no one from Apple here. No one here could help you, you need to contact iTunes support. http://www.apple.com/emea/support/itunes/contact.html
-
I'm having trouble with iTunes synching and accessing the iTunes store.
I'm having trouble with iTunes synching and accessing the iTunes store. When synching, the process tops at the back up stage, freezes and I can't close the iTunes window, need to ctrl alt del. When trying to access the store, the progress bar stops halfway. I've googled heaps and tried most of the standard answers - unistall, reinstall, etc, now looking for some help please.
This has only started a few weeks back, after working smoothly for the 2 years of owning the iPhone 3gs.
Any suggestions will be appreciated, it's getting realy frustrating.
Cheers for now,
Martyhttp://support.apple.com/kb/HT1923?viewlocale=en_US
this worked perfectly for me, with no loss of library! BUT was warned about uninstalling things in the order listed...FYI. -
I am having trouble with the coloured spinning wheel showing up with everything I try and do...My Mac mini has also slowed way down... any help out there would be appreciated...
I am having trouble with the coloured spinning wheel showing up with everything I try and do...My Mac mini has also slowed way down... any help out there would be appreciated...
Maybe you are looking for
-
Can see Windows PCs from Mac, but can't see (and access) Mac from PCs
Yesterday, I ran into a strange problem which I'm not able to figure out. I share an office with some engineers, who have their computer environment (server, network), all running Windows (XP and Vista on the PCs, Windows 2003 for the server). Within
-
Macbook Pro vs Macbook Pro with retina display
Hi, I'm getting a new laptop in december and I'm trying to figure out wich one I should buy. Here are my two options: Macbook Pro (non retina) 2.3GHz Quad-core Intel Core i7, Turbo Boost up to 3.3GHz 8GB 1600MHz DDR3 SDRAM - 2x4GB 500GB Serial ATA Dr
-
MouseClick event on a JLabel inside a TableCell
I'm building a table and each row contains 5 cells: 3 uneditable text labels edit icon del icon I want to open a dialog to edit the whole row when I click on the edit icon and delete the row when I click on the del icon. But the problem is that when
-
Change from display attribute to compounding attribute
Hi, I have 3 info objects as display attributes of another infoobject. I want to change them to be compunding attribute instead of display attribute but I'm not able to delete them from the attributes list. Please let me know how can that be done. Th
-
Garbled Graphics every once and a while on FF 4.0
I have been using FF 4.0 for a few days now. Every once and a while while browsing, all of a sudden the graphics will freeze up and then all of the menus on FF are garble graphics (see screenshot link below). This only seems to happen when Pandora ra