Change the "scratch disks" preference using vbscript

Hello

Is it possible to change preferences for scratch them off or the disc via a script (vb)?

Kind regards

Ramon

Sorry can't help with VB, but it's how I would do it in JavaScript...

var List = ["C:\\","G:\\","I:\\"];
scratchDisk(List);
function scratchDisk(List) {
   var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID('Prpr'), charIDToTypeID('CchP') );
        ref.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
        var desc2 = new ActionDescriptor();
            var list = new ActionList();
   for(var a in List){
            list.putString( List[a]);
   }
        desc2.putList( charIDToTypeID('ScrD'), list );
        desc2.putUnitDouble( charIDToTypeID('MmrU'), charIDToTypeID('#Prc'), 70.000000 );
    desc.putObject( charIDToTypeID('T   '), charIDToTypeID('CchP'), desc2 );
 try{
    executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
 }catch(e){}
};

Tags: Photoshop

Similar Questions

  • Isn't 'permission' to use the scratch disk.

    Hello

    I am running CS5.5 on a Mac.

    When I start a new project and I try to put my drive to work, I told myself that I don't have permission and my "documents" folder will be set as the drive working. However, once the first has finished loading I am able to change the scratch disk. Yet, it would be nice to get it working properly.

    I tried with a few discs and still get the same message. These readers work very much like the "scratch disks" to the PCF.

    Any help would be greatly appreciated. Thank you. I am just at first of FCP and am trying to learn my way around.

    Thank you.

    Mac and the Root user

    http://forums.Adobe.com/thread/879931?TSTART=0

  • PS7 and Scratch disk full, using XP SP3 with 1 HD... How to fix?

    I searched the forum, still couldn't find an answer or difficulty...  I installed my old PS7 on my new computer running XP with SP3 on an Intel Dual-Core, 1. 5 t HD (single player), 3 GB of RAM - not enough money for the PS, the computer upgrade took first dibs...  PS7 refuses to open - aprΦs the dΘmarrage, comes up with an error pop up indicating the Scratch disk is full and then stops.

    My old system (W-2000, only HD 20 GB, with 1.8 processor Pentium, 1 GB of RAM) worked perfectly with PS7 - never had any problems...

    I tried all the possible corrections...  HD is not even close to fragmented as it is a new drive; not quite yet installed programs, or use on computer, disk cleaning required; forced creation of the preferences (name changed to .old) file; and did the ctrl-alt-shift to start by default.  No idea what's happening, or why would he say the drive to complete work.

    The partition is too large n thrown out of the logic of internal swap file, most likely. Obviously, at the time when PS7 was hot, 1.5 TB drives were not around...

    Mylenium

  • THE "SCRATCH DISKS" IS FULL

    I can not filled any action while in photoshop because the "scratch disks" is full. I already ran in the Performance preference and allowed the program to use the 7.09 Go I have free space. What can I do else? Need help please, I'm about to throw the laptop through the windows...

    This may seem extreme, but given the current prices of the hard drive, I think that simply by adding a second drive (fast) would be the best solution and more fast. And even the least expensive considering the time invested to operate on a disk that is simply too small.

    Also note that with Windows, fill no matter which drive over 80-90%, even if it is temporary, falls seriously performance for all applications. Fill your system completely drive could still block your system completely.

  • Cannot change the HARD disk parameters in the Bios on Satellite A200

    I can't change the hard disk parameters in the bios for my satellite A200-1The
    This bios does not support changing the parameters of the hard disk for example SATA to IDE?
    BIOS version is: 5.6

    AFAIK in BOS advanced settings you can change mode SATA controller only. You can use the AHCI mode or compatibility.

    I put t understand why do you think you can use IDE mode. What you want to do exactly?

  • Re: Satellite Pro A40 - can I change the HARD disk or the same model?

    Hi Forum,

    do I have to wait for safe trouble by changing the hard disk between the following laptops:

    old or damaged laptop:
    SPA40 model PSA45E - 0013T - number GR
    Series No. 34127882 H

    new/own laptop
    SPA40 PSA45E-001VM-GR model number
    Series N0.34117607H

    Thanks in advance for your advice

    Concerning

    You can do it. No problem at all. Hard drives are not specific model of laptop parts and with hard drives is important compatibility.
    On the new laptop, which you can use different hard drives. Important is that use you compatible HARD drive.

    Just do it. After Exchange of HARD drive install Os again and everything will be OK.

  • Cannot answer your request because the "scratch disks" is full

    When I try to crop a photo I get this message: could not complete your request because the "scratch disks" is full. In fact a scratch disk has 62 + GB and the other has 52 + GB available. Does anyone have a solution for this?

    The disks are already full, or the operation you are trying to use more workspace you have available (as if you crop and forget the resolution value to create a HUGE document).

  • How can I change the phone number to use Face Time?

    How can I change the phone number to use Face Time?

    Your phone number come from your SIM, and when you open a session and activate FaceTime. It should appear automatically. If it is not, then I would say that your FaceTime does not complete the activation process. If you go to settings > FaceTime, you see something awaiting activation or waiting for activation under the switch to turn it on?

  • Change the product key to use COA OEM during the product upgrade

    I found the kkid106 question "can I use a product key Windows 7 OEM to a retail facility.

    But as it is not my particular case, I want to be sure and make the issue.

    The question is on a clean install of Windows 7 Home Retail using Windows 7 OEM Home.  My case is not a clean install.

    I have the following two scenarios:

    Scenario 1. A computer with Windows XP Pro OEM who got the original damage.  I have an Image backup which I bring to a Destination with Windows 8 OEM computer.  I get a retail upgrade of Windows 8.  I restore the Image to the destination computer, and then upgrade old XP Pro OEM with retail upgrade to Windows 8.  Technically I find myself with a computer without a license since the upgrade come from an OEM from another computer.  Now, I change the product key by using the Destination COA OEM computer to make a licensed computer.

    This scenario is correct.  Can I validate the license online or by phone?

    Scenario 2. A computer with Windows XP Pro OEM who got the original damage.  I have an Image backup which I bring to a Destination with Windows 8 OEM computer.  I have an Upgrade download Windows 8 without product key.  I restore the Image to the destination computer, and then upgrade old XP Pro OEM upgrade download to Windows 8.  I find myself with a computer without a license, because the upgrade is unlicensed and comes from an OEM from another computer.  Now, I change the product key by using the Destination COA OEM computer to make a licensed computer.

    This scenario is correct.  Can I validate the license online or by phone?

    Hi Jose,

    I would like to send you the items provided, they talk about how use OEM keys with the retail copy.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/can-i-use-Windows-7-OEM-key-with-a-non-OEM-disc/7788dfa2-94a7-4DB3-8bcd-b0e109bd7b95

    http://social.technet.Microsoft.com/forums/Windows/en-us/c805da6b-cbd2-4a40-9ea7-cc17391cf4bf/can-i-use-OEM-Windows-7-HP-product-key-to-install-64bit-OS-off-of-retail-disc?Forum=w7itproinstall

    Thank you

    Waseemulla S

  • How can I change the scale when you use the measure tool

    How can I change the scale when you use the measure tool

    With the tool selected, right-click the document, and then select "rate of change of the scale.

  • Change the database that RH10 uses to generate the file of the CPD

    Is it possible to change the database that RH10 uses to generate the CPD file? I have a weird entry in the list of topics in the pod project manager. I deleted the CPD file and let RH10 rebuild but the entrance is always there.  My team leader I would get rid of the entry before you send us the translation project. Thank you.

    Dang, I noticed the same problem occur with a project, I was trying hard, but eventually I had to start a new copy of the broken and did not create the problem again.

    If you use an agency that translated and uses RoboHelp, the last thing I would do is remove the code snippet. They would be brought who once instead of all over the place wherever it is used so your costs. However, it is a parenthesis.

    You have a backup of the project so that you can recreate the extract in the hope that the project is good in this and you can then delete again to check that you have used the right option?

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • The location of the scratch disk script...

    Hey people, I want set the scratch disk in Photo location

    Shop CS3 in a javascript startup script. Does anyone know if this is possible? Thks, will

    Take a look at this thread...

    http://forums.Adobe.com/message/2318666#2318666

  • Could not complete your request because the scratch disk is full

    Whenever I try to crop it a picture, I get this.

    Could not complete your request because the scratch disk is full.

    Thanks in advance

    You entered a resolution in the culture settings, and Photoshop is now resampling the acreage as you asked for it - creating a document too large for your drive to work.   Take the output resolution, or reset the cropping tool.

  • Photosmart 7520: Preference avancΘs, change the default settings, print using ONLY black ink (not color ink)

    Where can I find this that all information in the preferences > advanced, what they mean, how and why.

    How to permanentely to change the default printer settings.

    How to use out of the black cartridge for everything I print (I do not want to use ANY) color ink.

    Hi TJBar,

    This link should give you the information you need to explain the menu print, print menus. In order to print in black only, you can select "print in black and white." Note, however, that color will be used during maintenance of your printer. This is necessary to prevent the healthy color ink for when you do not need to use it.

    Please let me know if it helps.

    Thank you very much

    Michaele

  • Illustrator 2014: Scratch disk Preference keeps resetting itself

    Hello the Illustrator community.

    I've noticed recently that in my CC 2014 Illustrator 18.0.0, the drive working preference setting still reset itself. I use a MacBook pro with an SSD only, but I have an SSD of Thunderbolt of Lacie external that I had to use as a disk scratch for Illustrator and Photoshop. The problem is that if I set the preference scratch to be used externally as the principal and my school start, all right and me let us know that the change will take effect once it is reopened. The reopening of Illustrator, I'll double check and it is saved, and everything works fine. But if I happen to open Illustrator without my external attached, when I check the preference of scratch, he will return to the use of the commissioning as the main place to scratch, I understand.  But the next time Illustrator opens with my connected externally, the setting still scrape by default using the startup disk. At this point, I would need to change the preference, Illustrator to close and then reopen to make sure that Illustrator uses externally as zero.

    If for some reason it isn't saving my preference for the drive to work, while all other preferences seem to be registered properly. Photoshop of CC, in 2014 I can set preferences for scratch, which works fine, close Photoshop and reopen without attached externally and then close and reopen with handed out in place, and he will remember my preference to have the primary external as the scratch.

    It's just the way that illustrator is supposed to work, or is it maybe a bug? Someone at - it experience with this?

    I used Illustrator CC 17.x.x before that but did not notice that if it work the same way, since that day there I didn't have a dedicated disk that you want to use.

    Thank you very much, I look forward your help and responses!

    The last thing that Adobe HAVE done on a renunciation is to write the existing State of the preferences to disk file. If it uses the local HD than zero, it is what is saved in the preferences.

Maybe you are looking for

  • Satellite U500 - 1-8 - a few questions

    Hello everyone. I have a Toshiba U500 - 1 8. I bought it in Poland.I have a few questions on this model. 1. why not have this model: http://eu.computers.toshiba-europe.com/innovation/generic/product-support? 2. is it possible to do an internal 3 G mo

  • for Compaq 6000 of Wake on lan

    Hello Just bought a HP Compaq 6000 Pro SFF PC second hand My problem is simple, Power On LAN works if the machine is in "standby", but not if turned off. Yes the network LED turns on, but the motherboard is still as built, so the BIOS needs updating.

  • Impossible to uninstall a Reg Clean program

    Give me this message "C:/program files(x86) RegCleanPro/unis000.mg is missing.  Please fix the program or copy of the program. The worst thing I could have done.  Very annoying because he keeps coming back and I can't get rid of it.

  • SWMagent.exe restarts continuously

    Original title: SWMagent.exe Having a problem.  SWMagent.exe restarts continually.  How can I fix it?

  • Events of Smartphones blackBerry sync with Outlook

    Hello Looks like I have 3 calendar in my curve 8330? !!! One is: default device (where all the stuff is Outlook) 1: 0 entries email account Input 2: 1 account per e-mail If I want to add an event to my calendar, he invites me to the name of the calen