Using JSX to create a folder Help [CS3].

I'm trying to automate the zoomify export feature in photoshop CS3. It works fine until I try and save the file to a directory that does not exist. Instead of creating the directory, it throws an error and quits the script. So what I want to do is create a directory before I run the code to make the zoomify but I can't find a way to do so in google. Any help would be nice! Here is the code I was using.
var id12 = charIDToTypeID( "Expr" );
    var desc5 = new ActionDescriptor();
    var id13 = charIDToTypeID( "Usng" );
        var desc6 = new ActionDescriptor();
        var id14 = stringIDToTypeID( "template" );
        desc6.putPath( id14, new File( "C:\\Program Files\\Adobe\\Adobe Photoshop CS3\\Presets\\Zoomify\\Zoomify Viewer (Black Background).zvt" ) );
        var id15 = charIDToTypeID( "Otpt" );
        desc6.putPath( id15, new File( "P:\\upLoad\\item_zoom\\"+name1+"-"+name2 ) ); // This is where the error is hitting, where name1+"-"+name2 needs to be created.
        var id16 = stringIDToTypeID( "baseName" );
        desc6.putString( id16, imageZoom );
        var id17 = charIDToTypeID( "EQlt" );
        desc6.putInteger( id17, 8 );
        var id18 = charIDToTypeID( "Optm" );
        desc6.putBoolean( id18, true );
        var id19 = stringIDToTypeID( "browserWidth" );
        desc6.putInteger( id19, 540 );
        var id20 = stringIDToTypeID( "browserHeight" );
        desc6.putInteger( id20, 490 );
        var id21 = charIDToTypeID( "Prvw" );
        desc6.putBoolean( id21, true );
    var id22 = stringIDToTypeID( "Zoomify" );
    desc5.putObject( id13, id22, desc6 );
executeAction( id12, desc5, DialogModes.NO );

You can create the folder like this
var myFolder = new Folder('/p/upload/item_zoom');
if(!myFolder.exists) myFolder.create();
You just have to make sure that the parent folder exists as well, in this case '/p/upload'. If not you need to create that folder first then the subfolder.
You might also run into privilage issues with some OS.

Similar Messages

  • Using Images to create a border in CS3

    Hello people,
    I've recenty, found that CSS3 is capable of creating cutom border styles by using your own images. I know that CSS3 is included with Adobe CS5 Dreamweaver, but I only have CS3. What I wanted to know is if there was an alternate method in CS3 that looks like a border, but is just an image.
    I know it is possible using a background image and stretching it, but was simply wondering if there is a more correct way.
    Thanks in advance.

    You can achieve some interesting results with regular CSS borders.  
    And CSS3 Box-shadows & Border-Radius.
    http://alt-web.com/TEMPLATES/2-image-web-design.shtml
    Or the old method with image slices.
    http://alt-web.com/DEMOS/Image-slices-in-a-CSS-based-layout.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Exchange 2013 - powershell - create search folder for items larger than 24mb

    Hi all,
    is it possible to use PowerShell and create search folder in spesific mailbox that contains items larger than 25mb?
    Thanks!
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2work

    Ok this should be possible.
    I just tested a basic idea of what you want to do on Exchange 2010 SP3. IF you need me to test on 2013 let me know.
    Add the account you want to run the powershell search as to the "Discovery Management" role in AS or ECP.
    This gives you access to the "search-mailbox" command. Using this you should be able to build a search that moves mail to a different folder.
    http://technet.microsoft.com/en-gb/library/dd298173(v=exchg.150).aspx
    Thanks,
    Edit: something like this would help but the target mailbox would be there own I guess
    Search-Mailbox -SearchQuery “Size:>25MB” -TargetMailbox SomeMailbox -TargetFolder Export -LogOnly -LogLevel Full
    Ok so I have found a issue where the command does not allow the source mailbox to be the same as a target mailbox. I dont know if this will help you then unless you go through a long process of moving the mail out then back but thats very long.
    You could create a rule for this but it would have to be run manually with specific settings so I guess that might not work as user training can be difficult. 
    You could write a VBA macro for this and then apply it to all you machines.
    Or there is a 3rd party tool that could help you called
    Auto-Mate
    Sorry I could not be more helpful.
    Good luck

  • When I want to organise my bookmarks most of the options are greyed out and cannot be used including create new folder! Help

    '''''''''bold text'''''''''
    When i want to organise my bookmarks most of the options on the organise bookmarks menu are greyed out and cannot be used - including create new folder etc. Help please.

    Make sure you are not in the Private Browsing Mode:
    File > Private Browsing is UNCHECKED.

  • Creating a folder on an SMB share using a Mac

    Hi everyone,
    This is more of a question than a problem I'm trying to solve, really. Though the answer might help me better explain the issue to our security team.
    Our environment has multiple Windows file servers, both 2003 and 2008. If one of these SMB shares is accessed from a Mac and the user creates a folder, will the ACLs on the share that are set to cascade actually cascade to this newly created folder? We've had issues in the past where ACLs that are supposedly set to cascade on a shared folder are not present on sub-folders created from Macs.
    Next question: if the share resides on a netapp device, do the same rules apply? The Macs are still connecting to these shared folders using the SMB protocol.
    All Macs are bound to our 2008 AD domain and use network accounts with local homefolders. The issue seems to happen when one or both of the following things happen:
    1. A Mac user copies/creates a folder on a Netapp share and for some reason it doesn’t inherit rights correctly
    2. We move the folder from one share on an actual Windows server to the Netapp and it doesn’t take permissions correctly.
    Please let me know if you need any other information.

    Let's put it this way: I'm asking on a Mac site because the people on non-windows support sites are WAAAAY more interested in talking about problems and solutions involving things other than Windows.
    I'm fairly certain that the windows servers ARE respecting their own inheritance rules, barring any major bugs and the like which someone may know about...
    The isue isn't with Macs moving shares to a netapp, it's with a share being moved to a NetApp that has folders created by a Mac. Talking with our security team further, it seems the problem may be limited to shares resident on a NetApp or moved from a Windows server to a NetApp.
    I was primarily asking to see if anyone knew of any issues with these particular situations or had experienced something similar and had dug into it any deeper with F5 (NetApp vendor).

  • Creating a folder on hyperion workspace using a sqr job

    Hi Gurus
    need some help, I have this code in the sqr to create a folder on hyperion 9.3.1 workspace. When i run this job and do a show on "#dirfile_status0". The value in it is 2 ,which mean it is saying that the folder doesnot exists, but i know the folder exists. this is run on a unix box.
    if $sqr-platform = 'UNIX'
    let $prefix = '/' || 'Temp' || '/' || 'Subfol'
    let $NewDir0 = $prefix                          
    let #dirfile_status0 = exists($NewDir0)
    let $createDir0 = 'mkdir -p ' || $NewDir0
    if #dirfile_status0 <> 0
    CALL SYSTEM USING $createDir0 #RETURN WAIT
    end-if
    end-if
    Thank you in advance
    Kumar

    Hi Pranav,
    Tell me if you want to create this folder at run time or in NWDS while developing application.
    If you want to create it at the time of development just change your perspective to Java perspective and from there you can see the entire project structure and from there you can create desired files / folders.
    Ninad

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • I have created a folder that I can now Save to and view in Photoshop (CS4) but cannot find in spotlight or any other way on my mac. PLEASE HELP!!

    I use Photoshop CS4, I do not think this problem is related to PS... I am not exactly sure what happened. I created a folder on desktop, think I changed name of it. Now it is not on desktop. I know the exact name of the folder and have tried doing a spotlight search and cannot locate it AS WELL as searching for a file by name EXACT as name is. However if I go into Photoshop I can open or "save as" and open the folder and save as a "recent location" and the folder and its contents are found no problem... however cannot see the pathway to know where the folder is located on my mac.. PLEASE HELP!!! Been using photoshop and my mac for MANY years and NEVER had a problem like this... I have a photo client awaiting their pictures to be burned on a cd and mailed to them!!
    THANK YOU!!
    Laurie

    Try this. Open one of your files. The window that contains your picture is named at the top. Command click on the name and you'll see the entire path starting with its name and then moving to the folder, the folder it is contained in, etc all the way to down to the hard drive volume name. This should tell you where to find the folder.

  • HT3275 I continue to get the following error message: Unable to complete back up.an error occurred while creating backup folder. It's a brand new drive. When I attempt to repair it using disk utility I get:unable to repair disk cannot unmounted

    I have been trying to use time machine on a new lacie 2tb usb 2 drive for back up. I continue to get: "unable to complete backup.An error occured while creating backup folder". When I use disk utility to repair I get another error message: unable to repair disk unmountable.
    Help me Obie One Canobie you are my last hope

    I have confused myself with the facts!  Started out keeping track of every step and every variable but have sort of lost it as we progress here.  First I quit all applications then swapped connections between mouse port and backup disk port to influence possible bad connections question.  Changed power outlet receptacle for the backup disk. Disabled the put-the-HD-to-sleep option.  Then powered down the computerator.
    Next started up computerator.  Turned Time Machine ON  and experienced multiple successful backups!  Then I started up a few applications, Mail and Text Edit (but not Safari so far).  Had a few more successes.  After each backup, I used Disk Utility to verify the backup disk is still OK.  This because the error about unable to unmount the backup disk seems to go hand in hand with Disk Utility finding the backup disk to be bad.
    Put computer to sleep for the night.  Upon starting up in the morning, and before doing anything else, I did a backup disk verification... BAD!   Did a restart and verified the backup disk... OK.
    Did a few    Sleep-bad, Restart -OK    repetitions.
    It seems consistent:  Sleeping the computer apparently messes up the backup disk but doing a Restart "repairs" it.
    =============================
    Now then, I don't understand everything I know here.  Methinks that maybe keeping the HD from sleeping during lulls in activity has allowed successful backups through the day but manually putting everything to sleep for the night causes a return to the problem of spinning-back-up-too-slowly (which was explained earlier).  Is there any truth in this?
    I may abandon this Seagate thing for something more compatible.  What's out there that we know works reliably for us?

  • I am using an iMac and i am selling it tomorrow. So i am trying to back up all my files on my transcend external HD 500GB. I am not able to create a folder in the transcend and also even if I try to copy a file in the transcend folder. It just wont happen

    I am using an iMac and i am selling it tomorrow. So i am trying to back up all my files on my transcend external HD 500GB. I am not able to create a folder in the transcend and also even if I try to copy a file in the transcend folder. It just wont happen. Please help !!
    My transcend HD is on read only mode I guess. What to do? I dont have a windows computer to check and I need to create the back up right now..

    Welcome to Apple Support Communities
    It looks like the external disk is formatted in NTFS, a format that OS X can't write in. The solution is to format the external drive in "Mac OS Extended (Journaled)" (if you are going to get a Mac), or "MS-DOS (FAT)" (if you are going to get a PC) as Format in Disk Utility > http://pondini.org/OSX/DU1.html
    Then, you will be able to copy the files you need to the external drive. Note that "MS-DOS (FAT)" doesn't support files bigger than 4 GB.
    <Edited By Host>

  • How to create custom folder in every mailbox of Exchange 2007 mailbox : not using Managed folder

    Hello ,
    We want to create custom folder in mailbox as root or inside inbox for every user of mailbox but not using managed folder .
    I have found below article , but we do not get success to do that .
    http://careexchange.in/create-a-custom-root-folder-in-all-the-mailboxes-bulk-in-exchange-2010/
    Any idea how to do that ?
    It will be great helpful for  us.
    Thank you in advance.
    Regards
    faiz

    What happens when you try that method? What errors do you get? Have you ensured you've installed EWS 1.2 per the requirements listed in the script? (it actually mentions 1.1, but that no longer seems to be available, but 1.2 is here
    http://www.microsoft.com/en-gb/download/details.aspx?id=28952 ).
    I'm assuming you're running Exchange 2007 (since you're posting in the 2003/2007 forum, and this won't work on 2003), is that correct?
    While I don't know for sure that the script will work on 2007, have you ensured that you've amended the file paths to the correct locations? Eg, assuming it should work you'll need to amend the line :
    $service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010_SP1)
    to reflect the version of Exchange you're running, and the line :
    Import-Module -Name "C:\Program Files\Microsoft\Exchange\Web Services\1.1\Microsoft.Exchange.WebServices.dll"
    with whatever version of EWS you've installed.

  • How to create a Folder using java.

    Hi All,
    I have a doubt. I want to create a folder using java.
    Inputs are the destination where the folder should be created and the name of the folder. Plz help me in this regard.
    thanks and regards,
    Vincent .R.

    check out javadoc for java.io
    File reldir=new File("NewDir");//relatively where your program runs
    reldir.mkdir();
    File absdir=new File("C:/NewDir");//absolute path
    reldir.mkdir();
    File newdir=new File(absdir,"SubDir");//defines another dir under absdir
    newdir.mkdir();
    Gil

  • Create  PCD folder using web dynpro Java

    Hi All ,
    I would like to create pcd folder structure using web dynpro java
    i.e. My folder at top level and under this there will be iviews , roles , worksets  etc.
    Is it possible using WDJ ?
    I have checked the below link , but for folders I did not get anything.
    http://help.sap.com/saphelp_nw04/helpdata/en/44/6aaf92f5a23672e10000000a114a6b/frameset.htm
    Can you please help me ?
    Thanks,
    Sandip

    Hi,
    Please refer to the following document
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
    The same can be implemented in webdynpro also.
    Regards,
    Raju Bonagiri
    Edited by: Raju Bonagiri on Sep 3, 2010 8:36 AM

  • How to POST (create) a folder using CMIS REST in Webcenter

    Has anyone tried to create a new folder using CMIS REST/Atom calls in Webcenter ?
    Here's what I try to do:
    http://172.31.100.150:7001/cmisrestprelim/cmis/children/MyContentServer ==>POST (using the REST client plug-in in Firefox)
    Content-Type=application/atom+xml
    <?xml version="1.0" encoding="utf-8"?>
    <entry xmlns="http://www.w3.org/2005/Atom"
    xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"
    xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/">
    <title>mytestfolder</title>
    <cmisra:object>
    <cmis:properties>
    <cmis:propertyId propertyDefinitionId="cmis:objectTypeId"><cmis:value>cmis:folder</cmis:value></cmis:propertyId>
    </cmis:properties>
    </cmisra:object>
    </entry>
    This piece of code should create a folder called "mytestfolder" in the root directory.
    When I POST this, I get the following internal server error:
    <pre>javax.servlet.ServletException: com.sun.jersey.api.container.MappableContainerException: com.bea.content.RepositoryException: Please specify a valid ID object. Make sure the repository name is not null.
         at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:310)
         at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:314)
         at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:239)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
    Anyone has an idea how to solve this ?

    I must admit that I'm fairly new to all the CMIS and REST-things....
    So there are a couple of things in your answer that are a bit hazy to me.
    It looks like you are more familiar with all this.
    How do I find a creatable folder ? And what should be the URI to POST a new folder ?
    I try to POST a new folder using this URI:
    http://172.31.100.150:7001/cmisrestprelim/cmis/children/MyContentServer/IDC:Folder%2F13
    (IDC:Folder%2F13 is the /Contribution Folders/Documents folder in my repository)
    This POST keeps me giving the following internal server error:
    <pre>javax.servlet.ServletException: com.sun.jersey.api.container.MappableContainerException: com.bea.content.RepositoryException: Please specify a valid ID object. Make sure the repository name is not null.
         at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:310)
         at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:314)
         at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:239)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
    Thanks for helping me out.

  • How to Create PDF from Illustrator CS3 by using applescript?

    Hi Guys,
    Do some one knows how to create PDF from Illustrator CS3 by using apple script. If know, please give me the scripting.
    HARI

    Have you tried File>Scripts>SaveDocsAsPDF? There should be a folder of sample scripts installed in your AICS3 folder and a folder of documentation which contains an Illustrator AppleScript Reference which has examples.

Maybe you are looking for

  • Creative Cloud update fails with error code 50 Windows 8.1

    what is error code 50?

  • Could not order iphoto book due to error not enough photos are filled

    I am not able to buy the iphoto book , as there is a message that there is no enough photos in the frame , though every page as all the photos filled up . Please help

  • Can't create PDF docs

    I have Acrobat Pro 8 as part of Design Standard CS3. I've never used the create PDF function before but wanted to convert my xmas letter from Publisher 2007 to PDF to send out in email. It gets to 50% then gives the message failed to create PDF corre

  • Placing image/logo in header

    I am trying to place an image (company logo)  in the header of my document. I cannot work out how to do this in the new version? Same story with placing a table in the header (to place two logos in the header aligned left and right). Any ideas?

  • USB Drive Mounts Read Only

    For some reason now on all my Linux systems but particularly Arch Linux, my USB thunb drive gets auto mounted in Gnome when I plug it in but for some reason it's 'read only'. [carlos@tuna ~]$ cd /media/usb/ [carlos@tuna usb]$ ls -l total 3722352 drwx