Or is the error: app.activeDocument.saveAs (saveFile, saveOptions, true, Extension.LOWERCASE);

Hello

I have a script that works on Mac, I pass it on PC, and here he made a mistake with this message "a general photoshop error occurred. "This is may not be available in this version of photoshop.

This is my function:

Function to save files

function SaveFile() {}

var app.activeDocument.name = docRef;

saveFile = new File(destinationFolder+"//"+docRef);

Alert (SaveFile);

saveOptions = new JPEGSaveOptions();

saveOptions.embedColorProfile = true;

saveOptions.formatOptions = FormatOptions.OPTIMIZEDBASELINE;

saveOptions.matte = MatteType.NONE;

saveOptions.quality = 10;

app.activeDocument.saveAs (saveFile, saveOptions, true, Extension.LOWERCASE);

app.activeDocument.close (SaveOptions.DONOTSAVECHANGES)

}

Can someone help me?

Thank you

"saveFile" is defined on line 14

Tags: Photoshop

Similar Questions

  • [JS CS3, win] Saving InDesign using app.activeDocument.save

    Hello.

    I have problems saving a document in InDesign using Javascript.

    My goal is to have a box in the document where I type the name of the file and the path where I want to save the InDesign file (eventually it will be generated from a datamerge).

    Then, I want to run a script that will read the contents of the box and then save the document to the file name or location.

    At the moment I have:

    SaveText.jsx
    A JavaScript InDesign CS3
    //
    Saves the document in the provided path

    get the content of the FileNameBox box on the document
    var varFileName = app.activeDocument.textFrames.item("FileNameBox").contents;
    Save now
    app.activeDocument.save ("/" + varFileName + ".indd");

    Alert (app.activeDocument.filePath);

    When I run the script (with 'Hello' in the FileNameBox) file changes its name on the top bar of InDesign to "Hello.indd", but (when I run the commented warning at the end) the file is not actually save anywhere.

    If I close InDesign, then open it the file is listed under 'Open recent' on the menu, but clicking on it does nothing - even when the file does not exist.

    Does anyone have ideas to help me to tear my hair out?

    Where is my save file? (Or, if not, how can I do save!).

    Thanks in advance for any help you can offer.

    var myFolder = new Folder ("~/Desktop/Test");
    If (! myFolder.exist) myFolder.create ();
    var varFileName = app.activeDocument.textFrames.item("FileNameBox").contents;
    app.activeDocument.save (myFolder.fsName + "\" + varFileName + ".indd");
    Alert (App.activeDocument.FilePath);

  • How to solve the error app 23712 ns.windows for window 7

    I use Windows 7. I'm trying to connect to the desktop computer, but continue to have the above error message. I tried clicking on the two 'yes' (reconnecting the previous article) and 'no' (do not reconnect) as well as disable the connect virtual adapter 6.5.02 Juniper network. Nothing works, I can not connect to the desktop computer.
    "

    Hello

    You can follow below link that can help you to solve your problem:

    Troubleshooting step to solve by receiving the error 'nc.windows.app.23712' at the launch of Network Connect

    http://KB.Juniper.NET/InfoCenter/index?page=content&ID=KB11040

  • I get the error 'App activate' when I try to download my kits from the manufacturer App of DPS.

    I have a single-App subscription in the cloud to create Adobe.

    According to this FAQ (link: http://www.adobe.com/products/creativecloud/faq.html#single-app) I should be able to publish unlimited. Unique folio with DPS with my single-App on the creative cloud subscription. Here's the exact paragraph, I am referring to this FAQ:

    As a creative Member Cloud, I access Digital Publishing Suite?

    Digital Publishing Suite unique Edition is not available to free members of creative cloud. Cloud creative single-app and full members have an unlimited license of Digital Publishing Suite Edition single. Creative cloud for the members of the teams also have a unique Digital Publishing Suite Edition license.

    When I build the application in the DPS App Builder and reach the end of the process, I get the error where it asks me to provide a unique subscription Edition download for my application in series developer kits.

    I tried all the methods described on this forum to solve this problem, including the removal and reinstallation of the DPS App Builder, delete old applications and create new ones after redownloading the DPS App Builder, removing the DPS App Builder, signature out of my Folio Builder in InDesign, redownloading the DPS App Builder, signed again in my Folio Builder in InDesign etc, nothing works.

    Can anyone help? It is a time sensitive issue and I'm trying to get this app in the Apple process immediately. I can answer questions if you have any advice for me troubleshooting.

    Thank you

    David

    You're not going to be satisfied with my answer, but...

    Only application Cloud Creative customers do not have access to simple editing. You must have a full membership. This page will not, and I'll know who owns and repair

    Neil

  • While trying to install NET tools 5.0 in Vista, get the error "unable to save ole stdole2.tlb.

    The total error is

    c:\windows\system32\stdole2.tlb
    Could not register type library: RegisterTypeLib failed; 0x8002801c. access to the ole registry error

    It's trying to install NET tools 5.0. After a google search, this error occurs with a lot of different programs believe me it's a vista problem. Moreover, mine is vista 64 bit.
    If you do a search on google on stdole2.tlb cannot save and I know that the first 7 pages are all persons with the same error.
    which many vb developers. It doesn't seem to be a solution at the moment.

    So, how can I correctly enter the ole registry stole2.tlb?

    Hello Randabeast,

    You can try to install in a boot environment, this can help us identify if another program is interfering.

    For instructions on how to perform a clean boot, see the following link: http://support.microsoft.com/kb/929135

    You can also try to choose the button ignore and check if the application is working correctly.

    Let us know if it helps or if you need further assistance.

    Engineer James Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Alias of encryption B2B does not appear in the list for the channel AS2.0. Get the error if I save after selecting the encryption "Alias certificate not specified in the channel to secure the grant.

    Hello

    I'm using AS2.0 protocols.

    I create a key file using the following command:

    keytool - genkey-alias selfassigned - keyalg RSA - keystore b2bkeystore.jks - keysize 2048 - validity 730

    I created this file key in the following location:

    / FMW/Oracle/middleware/user_projects/Domains/fmw_domain/config

    I am able to see aliases "selfassigned" for the signature and it works perfectly fine for me.

    But I'm not able to see any aliases in the list of encryption. If I did, I get error "Alias not specified in the channel to secure the issuance of certificates.

    I also created keystore using THE algorithm using the following command:

    keytool - genseckey-alias deskey - keyalg-keystore deskeystore.jks - keysize 56-validity 730 - shops KKCES

    but when I'm configurring this file key in B2B, it's say "INVALID FORMAT".

    I am not able to understand how I can get rid of him.    Any help will be appreciated.

    Thank you

    Nitil

    Hi Nitil,

    Have you followed this note?

    http://Anuj-Dwivedi.blogspot.co.nz/2011/04/implementing-message-security-in-Oracle.html

    Kind regards

    Robert

  • "activeDocument.saveAs" does not work! -> Error 8800 | PS CS5 | Mac OSX 10.5.8

    Error 8800: General Photoshop error occurred. Maybe this feature is not available in this version of Photoshop.

    I even tried to copy the Script in the script Guide.

    jpgFile = new File( "/Temp001.jpeg" ) 
    jpgSaveOptions = new JPEGSaveOptions() 
    jpgSaveOptions.embedColorProfile = true 
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE 
    jpgSaveOptions.matte = MatteType.NONE 
    jpgSaveOptions.quality = 1 
    app.activeDocument.saveAs(jpgFile, jpgSaveOptions, true, 
    Extension.LOWERCASE)
    

    The rest of my Scripts work :-/

    Any Tipps?

    var path = app.activeDocument.path

    jpgFile = new File( path + "/Temp001.jpeg" )
    jpgSaveOptions = new JPEGSaveOptions()
    jpgSaveOptions.embedColorProfile = true
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE
    jpgSaveOptions.matte = MatteType.NONE
    jpgSaveOptions.quality = 1
    app.activeDocument.saveAs(jpgFile, jpgSaveOptions, true,
    Extension.LOWERCASE)

    perhaps this works

  • Error in the determination of Web save the session

    Hi all

    We get the error "Unable to save" immediately after clicking on the "Save" link in the pop-up Web determination. We had data from siebel to OPA as IO and the output of the execution of the rule appears correctly in the window of WD.

    We must perform certain actions in siebel side (we customized the WF 'Policy of automation Save Session IO Post') then we are by clicking on the link 'Save' to save the session to Siebel. But the backup of session (policy of automation Save Session IO) workflows are not called when we save only the error is displayed. It seems it is getting error when calling the web service inbound. We checked the logfile WD as follows:


    2012-05-17 15:32:22, 987 INFO [STDOUT] * GETLISTOPTIONS INICIO
    2012-05-17 15:32:22, 989 INFO [STDOUT] * ATTRIBUTE: optionLes
    2012-05-17 15:32:22, 991 INFO [STDOUT] 8242687 [http - 10.92.5.3 - 8280-2] ERROR com.oracle.determinations.interview.engine.screens.LocalControlFactory - list provider returned the error: /C:\config_tiposvalores.xml
    java.lang.RuntimeException: /C:\config_tiposvalores.xml
    at com.oracle.determinations.interview.engine.userplugins.DerbyListProvider.getListOptions(DerbyListProvider.java:120)
    at com.oracle.determinations.interview.engine.screens.LocalControlFactory.initInputControl(LocalControlFactory.java:191)
    at com.oracle.determinations.interview.engine.screens.LocalControlFactory.createAndInitControlInstance(LocalControlFactory.java:156)
    at com.oracle.determinations.interview.engine.screens.LocalScreen.init(LocalScreen.java:135)
    to com.oracle.determinations.interview.engine.screens.LocalScreen. < init > (LocalScreen.java:40)
    at com.oracle.determinations.interview.engine.screens.LocalSessionScreenService.createScreenInstance(LocalSessionScreenService.java:299)
    at com.oracle.determinations.interview.engine.screens.LocalSessionScreenService.getScreen(LocalSessionScreenService.java:112)
    at com.oracle.determinations.web.platform.controller.ScreenController.getScreenInstance(ScreenController.java:274)
    at com.oracle.determinations.web.platform.controller.ScreenController.renderScreen(ScreenController.java:112)
    at com.oracle.determinations.web.platform.controller.actions.InvestigateAction.getResource(InvestigateAction.java:53)
    at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doGet(WebDeterminationsServlet.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.oracle.determinations.web.platform.util.CharsetFilter.doFilter(CharsetFilter.java:46)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
    at org.apache.coyote.http11.Http11Protocol$ Http11ConnectionHandler.process (Http11Protocol.java:598)
    to org.apache.tomcat.util.net.JIoEndpoint$ Worker.run (JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:662)
    2012-05-17 15:32:27, 401 INFO [STDOUT] 8247098 [http - 10.92.5.3 - 8280-1]


    ERROR com.oracle.determinations.web.siebel.SiebelIOClient - <? XML version = "1.0" encoding = "UTF-8"? > < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" > < SOAP - ENV:Body > < SOAP - ENV:Fault > < faultcode > SOAP - ENV:Client < / faultcode > < faultstring > entry provided is not well formed or does not contain the expected data. (SBL-EAI-00137) < / faultstring > < details > < siebelf:siebdetail = "http://www.siebel.com/ws/fault" xmlns:siebelf > < siebelf:logfilename > EAIObjMgr_enu_0014_14680077.log < / siebelf:logfilename > < siebelf:errorstack > < siebelf:error > < siebelf:errorcode > SBL-EAI-00137 < / siebelf:errorcode > < siebelf:errorsymbol > IDS_EAI_WS_BAD_XML_DOCUMENT < / siebelf:errorsymbol > < siebelf : errormsg > entry provided is not well-formed or does not contain the expected data. (SBL-EAI-00137) < / siebelf:errormsg > < / siebelf:error > < siebelf:error > < siebelf:errorcode > SBL-EAI-00247 < / siebelf:errorcode > < siebelf:errorsymbol > IDS_XMLCNV_ERR_FTLPARSE < / siebelf:errorsymbol > < siebelf:errormsg > fatal error in the XML parser at line 1, column 29147: scheduled end of the tag & apos; AttributeValue & apos;(SBL-EAI-00247) < / siebelf:errormsg > < / siebelf:error > < / siebelf:errorstack > < / siebelf:siebdetail > < / details > < / SOAP - ENV:Fault > < / SOAP - ENV:Body > < / SOAP - ENV:Envelope >


    note of lease we changed the data type of the fields in the object of the integration component Boolean integration (which are sent to the Siebel OPA) from DTYPE_BOOL to DTYPE_TEXT as in OPM, we could not test the Boolean values. Can we check what values for the OPA to siebel themselves? (before the backup session WFs are called)

    A quick response will be a great help.

    Thanks in advance!

    The trace of the pile here, it seems that there is an error in the XML passed to Siebel. Is it possible for you to raise an incident with the support of oracle about this? It will make it easier to solve.

    Alternatively, if you look in the newspapers on the side of siebel, you should be able to verify the XML passed to Siebel during recording session. Probably easier to see why XML is incorrect. What may be a little harder to answer, this is what is causing the XML passed to Siebel to be bad.

  • BlackBerry Smartphones Memory Cleaner cause error when you save the storm?

    So, I recently started using memory cleaner on my bb storm.  I think that it is causing my bb storm not being able to save to the Desktop Manager.  This happened to someone else, or is there another program I should use to clean the memory?

    ofcpa wrote:
    So I restored w / my last backup and then was able to back up my phone and save it w / the current date.  I really believe that I get an error "Unable to save" thanks to the cleaner memory.  It's something that I can't back up my phone.

    Hello!

    If you believe you are getting the error with the cleaner memory active - have - run you controlled tests to validate it? And the error has disappeared if you run your inactive test with Memory Cleaner?

    Memory Cleaner is belived by the majority is not not necessary. It is a resource and performance drag on the device of benefits that meet only people safety requirements very high. This is a Ko that deals with what he does.

    http://www.BlackBerry.com/BTSC/microsites/search.do?cmd=displayKC&docType=kc&externalId=KB03862&SLIC...

    The most widespread on Memory Cleaner is that it performs defragmentation of memory of the App and clears the memory leaks and others, the BB back to a good working state. This is incorrect. The best way to achieve this is restarting batt-pop.

    Hope that helps!

  • Is the result of app.activeDocument.metadataPreferences a XMPMeta object?

    Hello again

    Hope this isn't a stupid question.

    I wondered if the result of

    app.activeDocument.metadataPreferences;

    is an object of XMPMeta according to "JavaScript Tools Guide.

    I would say yes, because I found examples where the previous statement is followed

    myDocXMP.setProperty (destNamespace, destNodeName, nodeValue);

    But I would also say no, because when I'm looking for

    myDocXMP.deleteProperty (destNamespace, 'CreatorTool');

    ExtendScript Toolkit, I get an error message saying "myDocXMP.deleteProperty is not a function".

    More I read, the more I get confused. Can you help me find a source of information for beginners? Thank you very much.

    Giordano

    Hello

    metadatapreferences does not have a method deleteProperty()

    Take a look: http://jongware.mit.edu/idcsjs5.5/pc_MetadataPreference.html

    These methods belong to lib: AdobeXMPScript.

    It is not as easy to manage as well. Have you tried another tool like exiftool commadline...

  • When I press the button Add card on my phone app here is I get the error message

    Hi thanks, my cards have been on my iPhone 6plus for quite awhile. I recently bought an iwatch series 1. Watch and phone software is up to date. My app to watch on my phone recognizes my cards when I press the map button Add on my phone app here is I get the error message.

    Hello

    To be able to add cards to pay Apple on your watch, it will first the configuration of the area selected (like on your iPhone):

    • On your iPhone, in the application of the watch, go to: Watch My > general > language and region - check Format correct region is selected.
    • If they are already correct, it can help to select again the two the same Format of the region and also the language of the system itself.

    Then follow the instructions here to add cards to the Watch:

    More information:

    Pay help, add maps of Apple - Apple Support

  • To save the movie app crashed using Siri

    I have an Apple TV with the latest non-beta OS 4.  Watching Dark Knight Rises.  Whenever I try to use Siri to save 30 seconds, it rewind the film of 30 seconds and then the film Soft has promptly stops and restarts, forcing me to go through the hassle to find the film and commissioning.

    This exact thing also happens if I pause the movie, allow the saver to start screen and then press the remote control to exit the screensaver... the movie app just crashes.

    Reboots don't fix.  It happened with all the movies I've tried.  Manually progress.

    No problem using Siri in the Youtube app.

    It looks a bit like this another recent thread: Returning to film on Apple TV 4 results with automatic return to the view of the 'Films'. I see the behavior even if I try to use Siri to jump into a film with movies app restart. Apple has indicated via Apple TV Feedback.

    TT2

  • The photos shows 'unexpected error' app when you are ordering prints

    WWhen trying to order prints in the Photos app in OS X 10.11 whenever I select express shipping, I see a dialogue "an unexpected error has occurred." I checked that the credit card and address are good for the iCloud account logged in System Preferences. I also checked the same iCloud online account and he has good credit card and address. Any ideas what is causing the error? Thank you. Greg

    SEMs is a bug APple - for a week or so change of quantity or shipping caused an error - no solution I've seen other than keep trying

    LN

  • Unable to save the Page as that received the error "ga.js could not be saved, because the source file could not be read." Try again later or contact the server administrator.

    Unable to save the Page as that received the error "... ga.js could not be saved, because the impossible source file read try again later, or contact the server administrator.

    You have installed the Ghostery add-on or something similar?
    It can block Google analytic and .js file could not be read.

  • reformatted my mac pro. copied from iPhoto from the external backup drive. received the error message saying lack of theme fonts. removed the app to be able to reinstall. but my app store it shows as installed. How I install it again.

    reformatted my mac pro. copied from iPhoto from the external backup drive. received the error message saying lack of theme fonts. removed the app to be able to reinstall. but my app store it shows as installed. How I install it again. the deleted copy is missing in the trash folder too.

    Unplug your backup disk, restart, and try again.

Maybe you are looking for

  • Missing DVD CDrom drive

    A few days earlier, the CD-ROM drive (a combo SD-R2212) suddenly disappeared. Apparently not a hardware problem, since it recognizes a bootable CD. The Explorer shows just the same drive in the Device Manager. No individual error or warning message a

  • My mouse cursor keep blinking - please help

    I use a Lenovo laptop since 2008. I like this product as my pet. But recently due to a problem I'm not able to do any type of work using this. Product: 3000 G410 2049Operating system: Windows 7 The beginning of the mouse flashes during start up and i

  • lrt224 dual wan router

    Hi im new in dual wan configuration. Help, please.Here is my problem 1 dynamic globe telecom primary WANWAN static pldt 2 telecomLink failover mode 1 router is connect to lrt224 to serve wifi and my switch also plugin for wifi wireless1 cctv dvr conn

  • Detect the passage from one screen to another screen

    Hi guys.  My application starts with a screen called screen1.  The user can click on the BB of 7 points and choose an option to switch to another screen called screen2, to make changes to the admin.  I push screen2 in the stack.  Later, the user clos

  • T61p OSD problem.

    Hello, I recently formatted my HARD drive and installed Windows 7 64-bit edition. Everything works fine, except for one thing - I have no MENU, which means that I do not see my volume when I press the volume keys or the brightness when I press the br