Set cache location on startup?

I have a number of various RAIDs that I have attached to my computer, each one having a folder called z_AECache that is used for the cache for whenever said RAID happens to be plugged in. But every time I change disks, AE resets the cache location to the default since it can't find the previous one. Having a permanent dedicated drive is not an option, nor is naming all my RAIDs the same in order for AE to recognize it. What I'd like to do is to write a simple start up script that iterates through the various possible cache locations in order of preference (/volumes/RAID_A/z_AECache, /volumes/RAID_B/z_AECache, etc.) and when it finds one, set the cache to that location, else set it to a default location on my local disk.
I've dug through the scripting documentation and there doesn't seem to be a cache location attribute or any methods dealing with the cache other than to purge it. Is there some other way I'm missing that's just not listed in the AE documentation because it isn't dealing with classes specific to AE? Maybe some other startup thing that runs a python script in a terminal in the background. Many thanks,
Robert

I think you can use it as base.
var cacheFolder = app.preferences.getPrefAsString("Disk Cache Controls", "Folder 7"); // get your current cache folder
if(!cacheFolder.exists){
var foldersArr = [];    // here  goes your possible folders
for (i=0; i<=foldersArr.length; i++){
        cacheFolder = new Folder(foldersArr[i]);
    if(cacheFolder.exists){
        break;
app.settings.saveSettings("Disk Cache Controls", "Folder 7", cacheFolder.toString());

Similar Messages

  • 1.5 How to globally set the System Cache location

    FROM ANOTHER USER ON ANOTHER BOARD:
    This one did not get answered completely.
    ************************* Question:
    Hello,
    I want to deploy JWS on a client PC with Microsoft XP OS. This client have multiple users. JWS put a file deployment.properties in the directory "documents and setting" for the current user.
    How can I create a uniquely file deployment.properties for all users of this client (new and existing profiles) ?
    Create a directory "documents and setting/all users/application data/sun/java/deployment/" with the file deployment.properties don't work.
    Create a directory "documents and setting/default user/application data/sun/java/deployment/" with the file deployment.properties is working but is not good for the existing users. This is good uniquely for new users.
    is there a solution ?
    King regards,
    funchung
    ************************* ANSWER:
    For windows, the system config file is at:
    {Windows Directory}\Sun\Java\Deployment\
    The value of the {Windows Directory} is determined by using the Win32 API GetWindowsDirectory.
    So for example, on XP, the system config file is:
    c:\WINDOWS\Sun\Java\Deployment\deployment.properties
    The settings in this system config file will be used by all users on the system.
    ***************************** HIS REPLY
    I've tried this and it doesn't seem to work.
    I've also tried createing a deployment.config file as per the http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html article and this doesn't work for me.
    Has anyone done this successfully??
    ******************************** MY REPLY:
    This is true.
    I can get the system install to work if I add the parameter:
    deployment.system.cachedir=C\:\\testcache
    to the deployment.properties file found under:
    C:\Documents and Settings\username\Application Data\Sun\Java\Deployment
    but it will NOT work by adding it to the:
    C:\WINDOWS\Sun\Java\Deployment
    directory. It just creates a new default one in the user's folder.
    What am I doing wrong?
    If there is not a way to globally set the System Cache location, then this isn't much better than the user cache for being able to "install" the software once on the PC and let any user that signs in access that application.
    We had high hopes for this, since this functionality was taken away from us once the java cache started being stored in the user's folders.
    More details:
    I just tried setting the mandatory=true setting and it tells me that it is not allowed to start because it can't find the
    deployment.properties in the same folder (full path is displayed) but I know it is there, because it is the same folder. I even double checked the spelling.
    Maybe there is a bug in the way it finds that properties file, or maybe I need to include something in that file that I didn't find in documentation?
    All it has in it is the one line:
    deployment.system.cachedir=C\:\\testcache
    Can anybody help shed light on this?
    It seems to be a bug that it can't find the deployment.properties file in the 'system' folder.
    -Chris

    I now found more on another thread:
    http://forum.java.sun.com/thread.jspa?messageID=3500778&#3500778
    You can close this one.
    Sorry.

  • Programatically setting preferences - cache locations etc.

    Hi all,
    I've had a little look around but can't seem to find the answer to this question. I'd like to have a way of defining, at a machine level, the location for After Effects (and for that matter, Premiere and other Adobe apps') cache directories.
    We have NFS mounted home directories with soft and hard quotas and every time the AE prefs get munged, users must remember to change these preferences or risk hitting their quota limit, which causes all manner of problems.
    Since the introduction of CS5.5, disk cache is enabled by default, which is obviously a good thing for performance, but ideally, we'd be able to alert the user to the status of the cache directories at every launch of the application and provide an easy way to set the location to a local disk, pre-populating say /Users/Shared/Adobe/Caches or similar.
    In the preferences file for AE CS6 (Adobe After Effects 11.0-x64 Prefs) there seems to be one path under the key ["Disk Cache Controls"] "Folder 6" but in the application iteself, there are other values, presumably for the Dynamic Link features of all the apps, which tend to point to a directory under ~/Library/Preferences/Adobe/Common (though quite why potentially massive media files are stored under users' preferences folders is beyond me.)
    Any help or pointers would be greatly appreciated.
    Thanks.

    Double posting

  • Captivate 8 Cache location

    Hi,
    Was wondering if i could get a firm response on whether the standard cache location can be modified for users of the application by defaut from
    C:\ My Documents\My Adobe Captivate Projects.
    We require the location to be set to D:\My Adobe Captivate Projects area(without manual intervention), we have tried to replace the objects.cpo (which holds a D Drive location) file for our test users but it seems to cause issues with the startup menu not displaying correctly. We have confirmed this with the following test.
    Login as Administrator
    Start Captivate and make configuration change. This creates and then updates Objects.cpo.
    Copy Objects.cpo to standard user profile
    Login as Standard User
    Start Captivate. Menu does not display correctly
    below is the default view that we expect from the application (this is when no changes are made)
    Any help to get to the botton of the issue will be greatly appreciated.

    Why don't you just change the location in the Edit > Preferences > General > Default Locations fields?  Do this without any projects open to set Global Preferences.  Make sure all projects you create are also set this way for their Local Preferences.
    Check what it looks like in Cp7 here:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-preferences
    Cp8 is much the same.

  • How do I set cache to always reload a page?

    I am in an online class and need to set cache to always reload a page. I do not even know what a cache is. I have just downloaded Firefox 18.

    hello mdonovan1977, you could try the following: enter '''about:config''' into the firefox location bar (confirm the info message in case it shows up) & search for the preference named '''browser.cache.check_doc_frequency'''. double-click it and change its value to '''1''' - this should make the browser check for a new version of a page each time it is reloaded.
    http://kb.mozillazine.org/Browser.cache.check_doc_frequency

  • Bridge CS5 Cache Location

    What are the advantages and disadvantages of centralized vs. "exported to folders" cache locations in Bridge CS5?
    I see in the help section it says something about sharing images across computers.
    Other than that, what are the effective differences?
    Thanks,
    Drew

    Have never seen a document laying out exactly how cache works, but this is my understanding.
    Central cache is the main cache, and when you select purge this is the one that gets purged.
    I use central cache as I believe that if you get a contaminated file you will have to manually delete the cache in all the folders, as purging only affects central cache.  Using central cache may cost time, expecially on folders I rarely use, as the cache may have been deleted and replaced by cache from recently visited folders.  But this depends on how many files you have and where you have the slider set for storage.
    Some have reported that haveing distributed cache speeds up loading time for folders.  Distributed cache is an additional cache put on the various folders.   It is useful if you want to send photos to another drive as all the  info is there (XMP files).  Otherwise you have to choose build and  export cache.
    Hope this helps.

  • Camera Raw Cache location? SSD or HDD

    Where should I set up my Camera Raw Cache location? (SSD or HDD)
    My System Configuration
    C Drive(SSD): Windows & Lightroom software
    D Drive(HDD): Image files & LR catalog file
    I know SSD has fast speed but fragmentation occurs. whereas HDD speed is slow, but fragmentation does not occur.
    I'd like to know set up my Camera Raw Cache location.

    Where should I set up my Camera Raw Cache location? (SSD or HDD)
    My System Configuration
    C Drive(SSD): Windows & Lightroom software
    D Drive(HDD): Image files & LR catalog file
    I know SSD has fast speed but fragmentation occurs. whereas HDD speed is slow, but fragmentation does not occur.
    I'd like to know set up my Camera Raw Cache location.

  • Can't change the cache location

    I use a RAMDisk for the disk cache. Prior to upgrading to Firefox 11, I used to be able to set
    browser.cache.disk.parent_directory=R:\
    to set this. Now the cache is no longer located on R:\ although this setting is still there. Where has it gone and why?

    Does it help if you use a specific directory like R:\temp on that drive instead of setting the root directory as the location of the cache?
    Be sure to create the specified directory.
    Are you setting the cache location via the about:config page?

  • Changing cache location with notepad.

    Hey guys, A while ago, before the option to change your cache location was removed from the PC application, I had set it to a secondary HDD on my PC; seeing as how I have an SSD as my primary drive, and like to limit needless write cycles to extend it's life. Now, I remember whenever the option was taken away; and read somewhere that you can go into the core Spotify files with notepad and manually change the location that Spotify stores this information. Being an old install that had just been updated, I checked the file; and it was already set to my desired location. (I guess the settings just carried over.) Fast forward to this weekend, my failing SSD finally got replaced after a long service life; and I decided to start over with a fresh Windows install. I've tried to dig up the post that explained which file to go to in order to change location of my cache, but I can't seem to find it. I was hoping that somebody knew something about it and was able to drop me a hint as to where to go! Thanks, Andy

    Hi ,
    Inside the spotify installation folder (Usually located under C:\Users\YOURUSERNAME\AppData\Roaming\Spotify), there is a file called 'prefs'. Open it with a text editor like Notepad++ (or any other one). You used to be able to find it there. The storage.location line might only be available in older versions though. 
    Aside from that, its on the list of being implemented as a menu option again.

  • VS2010 Crystal Report Crashes System when using 'Set DataSource Location..'

    Runtime ASP.NET 3.5
    VS 2010
    Under Database Fields (rt click) try Set DataSource Location... causes VS2010 to crash.
    This is on an imported report from VS2008.  VS2008 has no problem with the report.
    Since this is a ASP.NET 3.5 program the internal property field
    <ResGenToolArchitecture>Managed32Bit</ResGenToolArchitecture>
    has been set in the project in order to allow the code to compile w/out errors.
    What is solution for Crystal Report Set DataSource Location?

    Hi Ken,
    Here's one link on the issue: CRVS2010 RTM: Database Expert / External Component has thrown an exception
    The reason is Old OS's used c:\temp as the default, now you are require to use %user%\temp as your temp folder as well as using the AppData folder for your app. If CR finds c:\temp it uses it and depending on what is in there it can cause Cr to crash, XML files have been know to do this.
    Following MS's new rules on users temp folder should make your app Windows Compliant.
    Thanks again
    Don

  • How to set the location of a button  (in an applet)

    Hello
    How do i set the location of the button
    forexample if i want to create a button in the middle of the applet, how would i do that
    Thanks :)

    supahsain08 wrote:
    Well i did this
    Triangle.setLocation(50, 100);
    (where Triangle is a buton)
    it doesn't do anything, stays at the same placeIt's all about context here and there are still many unknowns here that can effect your result and that you have not told us or shown us. My suggestion to you is to consider posting an SSCCE (Short, Self Contained, Correct (Compilable), Example, a condensed program similar to your current program in that it demonstrates the problem at hand, but is the smallest bit of code that still compiles and has no extra code that's not relevant to your problem. For more info on SSCCEs please look here:
    [http://homepage1.nifty.com/algafield/sscce.html|http://homepage1.nifty.com/algafield/sscce.html]
    Also, when posting your code, please use code tags so that your code will retain its formatting and be readable. To do this, you can will need to paste already formatted code into the forum, highlight this code, and then press the "code" button at the top of the forum Message editor prior to posting the message. You may want to click on the Preview tab to make sure that your code is formatted correctly. Another way is to place the tag &#91;code] at the top of your block of code and the tag &#91;/code] at the bottom, like so:
    &#91;code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    &#91;/code]or
    {&#99;ode}
      // your code block goes here.
      // note here that the tags are the same.
    {&#99;ode}good luck, pete

  • How to set the location of a button

    Hello
    How do i set the location of the button
    forexample if i want to create a button in the middle of the applet, how would i do that
    Thanks :)

    Do not make duplicate posts.
    http://forum.java.sun.com/thread.jspa?threadID=5293505&messageID=10240164#10240164

  • Where can i set the location of the LogonTicket cookies in the visual admin

    hello:
       where can i set the location of the LogonTicket cookies in the visual administrator?
    thanks!!

    Hi,
    When the SAP LOGON ticket Expired or if we need to update the dates, it is generally done at the Visual Administration Level. SAP Logon Ticket is represented as cookie in the Browser which will help us for SSO.
    In Visual Admin under keystore admin where our Old Portal certificate exists.
    We will need to delete the old portal certificate, then we need to generate new ceritificate and a pop box will appear.. where we need to provide our System details like SID, Client. After these details are given we can get a new certificate in which validity period dates are automatically generated. And also we can import teh same into Portal at Sys Admin->sys config->key store admin for it to be available as .PSE or .DER file for SSO.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/59bba290-0201-0010-468b-cd12efda573a
    check the above for EP security guide which might help you in the same.
    Regards,
    Ravi

  • How can i set the location of my pictures in photos app for mac osx?

    Not every photo I import into my MacBook have all the metadata in them. iPhoto allowed for setting the location, but in Photos I cannot manage to do so. Is there another way to do it or perhaps it's coming with an update?
    Thanks
    MacBook Mid-2010
    OSX Yosemite 10.10.3
    Photos 1.0

    Adding location data is not yet supported in Photos.
    And we do not know, if future updates will  support this feature. It might help, if you send back feedback to Apple with a feature request. You can use this form:  Apple - Photos - Feedback
    As a work-around, use third party apps to add location data before you import the photos to Photos.
    You could, for example, first import to iPhoto, add the locations, batch change the titles and captions, do all the things that are not yet supported in the new Photos, then export the photos from iPhoto and import them to Photos.
    Or use the free exiftool, if you like the Terminal.
    See:  http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#geotagging_exampl es
    To install exiftool: http://www.sno.phy.queensu.ca/%7Ephil/exiftool/install.html
    Other convenient apps are Jetphoto Studio, Geotagalog, there are many more ..
    I use Jetphoto Studio, but it is not free.

  • Setting Component Location

    I want to set the location of my component (in this case a Choice box) using x and y coordinantes. Right now I this:
    Choice views = new Choice();
    public MPanel(Modeler PARENT, int VIEW)
    views.add("Top");
    views.add("Bottom");
    views.add("Front");
    views.add("Back");
    views.add("Right");
    views.add("Left");
    add(views);
    views.setLocation(20,20);
    MPanel extends panel and no layout manager is ever assigned or declaired. However it still insists on puting the box at the center of the top of the panel.
    Any Ideas?

    A Panel defaults to having a FlowLayout layout manager. If you really want to use coordinates like that you could try setting the layout manager to null for the panel.

Maybe you are looking for