Possible bug in Photoshop CS6 with app.activeDocument.path.

JavaScript running in Photoshop CS6 under OS X 10.7.5 returns the wrong result for app.activeDocument.path when the file is located on the boot drive. The result is undefined and an error message incorrectly states that the document has not been saved yet. If the file is located on a remote volume, the correct path is returned.
To reproduce this problem, create a new file in Photoshop CS6 on a Mac. Save the file to the desktop. With the file still open, run the following script in ExtendScript Toolkit.
// start script
var thePath = app.activeDocument.path;
alert(thePath);
// end script
Running the same script with a file located on a server volume open in Photoshop correctly returns "/path/to/file.psd" instead of undefined and no error occurs.
This appears to be a bug in Photoshop CS6's JavaScript implementation. This problem did not exist in Photoshop CS3.
A similar issue prevents Photoshop CS6 from saving files to the boot drive using activeDocument.saveAs.
Has anyone else experienced this problem? If so, have you discovered an alternate method to determine the file path or save a file on the boot drive?

Don't know if this will help much but at least you can use it to check a document's filepath without throwing an error. And maybe tell if the problem is with the Photoshop DOM.
function hasFilePath(){// returns true/false
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    return executeActionGet(ref).hasKey(stringIDToTypeID('fileReference'));
function getFilePath(){// returns path as a string if exists, undefined if not
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var desc = executeActionGet(ref);
    if(desc.hasKey(stringIDToTypeID('fileReference'))) return decodeURI(desc.getPath(stringIDToTypeID('fileReference')));

Similar Messages

  • Bridge wont recognizw my Nikon d610.  I am running windows 8 and photoshop cs6 with 8.6 camera raw plug in.  How can I get bridge to recognize my camera?  Thanks to anyone who can help!!

    Bridge wont recognizw my Nikon d610.  I am running windows 8 and photoshop cs6 with 8.6 camera raw plug in.  How can I get bridge to recognize my camera?  Thanks!!

    That camera model has been supported since ACR 8.3 and it is most certainly supported by ACR 8.6 and ACR 8.7 (beta).
    Either you have damaged, corrupt image files, or a faulty Photoshop and/or ACR installation.
    If there are no privacy issues, you can post one of your files to the FTP service of your choice (such as Dropbox or yousendit.com), post the link to it, and someone here can take a look at it for you.

  • Problem editing images in Photoshop CS6 with LR 4.1

    I have Photoshop CS6 with the latest version of Camera Raw, 7.1.
    However, when I attempt to open a file in Photoshop using the Edit > Open in Photoshop CS6 command, I get the following error message:
    This version of Lightroom may require the Photoshop Camera Raw plug-in version 7.1 for full compatibility.
    Why is this happening when I've already upgraded to Camera Raw 7.1?

    OS X 10.7.4
    I don't see a Camera Raw folder. I see a folder for Photoshop CS6, Extension Manager CS6 and Bridge CS6.
    I updated by going to the Help menu in Photoshop and selecting "Updates..."
    According to "System Info" in the Help menu, Camera Raw 7.1 is installed. It says:
    Multiplugin.plugin”
       Camera Raw 7.1 (354), Copyright © 2012 Adobe Systems Incorporated - from the file “Camera Raw.plugin”

  • Photoshop cs6 with OS X Yosemite, I open a new layer and i paint on it but if I use cmd Z  it does not undo fluently the most of the time.

    Photoshop cs6 with OS X Yosemite, I open a new layer and i paint on it but if I use cmd Z  it does not undo fluently the most of the time.

    Grab the plug-in posted here:  http://helpx.adobe.com/photoshop/kb/photoshop-menus-turn-white-mac.html
    That should get everything working as expected on Yosemite.

  • Can i use the trial version of Photoshop CS6 with Windows XP - if so, where can i download it?

    Can i use the trial version of Photoshop CS6 with Windows XP - if so, where can i download it?

    Hi,
    Yes you can, please check the minimum system requirements: System requirements | Photoshop
    Here is the download link for trail: Download CS6 products
    Thank You
    Arjun

  • I want to reinstall photoshop CS6 with serial number - where is the site?

    I want to reinstall photoshop CS6 with serial number - where is the site?

    If you purchased it as a download you should have a link to download it in your Adobe account online.  Otherwise you can download the trial version and use your serial number to activate it.
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    An alternative site for downloading the trial version follows but you need to follow the instructions carefully for the download to work.
    http://prodesigntools.com/adobe-cs6-direct-download-links.html

  • Downloading trial version of Photoshop CS6 with extensions

    If I download the trial version of Photoshop CS6 with extensions, will I be able to use my current installed CS5 Creative Suite Design Premuim, and if I decide to just buy Photoshop CS6 will it work with the other application in my ?CS5 Creative Suite Design Premuim? I am running on Windows 7 - 64 Bit
    Thanks for your help.
    Gary

    Yes, and yes as long as you choose the option to Maximize compatability when saving your PSD files.

  • I have the CC Membership with photoshop CC and Lightrom 5.4.  Can I also use the photoshop CS6 with my membership?

    I have the cc membership for one year with photoshop cc and lightroom.  I was wanting to know if I can use photoshop cs6 with my membership?

    Adana321 yes Photoshop CS6 is currently included with your membership.  Please see Download previous versions of Adobe Creative applications for information on how to install Photoshop CS6.

  • Can I merge Photoshop CS6 with extended into Photoshop CS4 or CS5 will work together ?

    Can I merge Photoshop CS6 with extended into Photoshop CS4 or CS5 will work together ?

    Versions of Photoshop have different installation trees and user preferences.  You do not merge Photoshop versions. Each version is independent.  When you install newer versions of Photoshop the are options to migrate your presets and Preferences. You can start and use any version installed on your machine.  For the most part newer version of Photoshop are backwards compatible with older versions of Photoshop. However some changes  Adobe make to Photoshop change user interfaces and and the way Photoshop performs some functions these changes break some user actions, scripts and user work-flows.  In fact all the version you listed CS4, CS5 and CS6 have comparability issues.  In that respect Photoshop CC is not any better it has compatibility issues.  
    Newer versions of Photoshop have new functions and updated old function.  Older versions can not handle everything save by newer versions of Photoshop. If you save PSD and PSB files with the maximum compatibility option checked. Older version should be able to open you layer document with layers that look like what was saved though some layer may be altered and may even be a different layer kind then was saved. If you need to support older versions of Photoshop always use the maximum compatibility option.

  • Can I run Photoshop CS6 with Vista?

    Can I run Photoshop CS6 with Vista?

    Hi Levine919,
    Photoshop CS6 has not been tested on Vista.
    Please check the Tech Specs : http://www.adobe.com/mena_en/products/photoshop/tech-specs.html

  • I want to scan within Mac Photoshop CS6 with my Brother MFC-8950DW, what should I do/install/configure?

    I want to scan within Mac Photoshop CS6 with my Brother MFC-8950DW, what should I do/install/configure?

    Hi Alain,
    Please refer the KB :http://helpx.adobe.com/photoshop/kb/sacnning-photoshop-cs6-mac-os.html
    TWAIN plug-in | Photoshop CS4, CS5, CS6
    Regards,
    Rave

  • Is it possible to install Photoshop CS6 on Mac OS X 10.9 Mavericks?

    Hi, I want to buy Photoshop CS6 but I'm not sure if it's possible to install it on Mac OS X 10.9 (Mavericks).
    Can anyone help me?
    Thanks in advance,
    Leonie

    Yes, I'm running both CS6 and CC here on Mavericks. No issues.

  • Trying to update Photoshop CS6 with latest Camera Raw but no luck!!

    Working on a Corporate Licensed CS6 and the "Updates" under Help is grayed out? I have a license key, I have logged on to Adobe and I am an admin. Still it's grey.
    So I went on the internet and found a lot of pages telling me it is easy to download and install but still no. Adobes own site only gives me version 7.1 (Adobe - Adobe Camera Raw and DNG Converter : For Windows).
    The internet gives me this link with a lot of info about 8.5 but no ******* download link http://helpx.adobe.com/photoshop/camera-raw.html
    I suspect Adobe don't let you upgrade beyond 7.1 if you don't run CC but there is no one on Adobe that can confirm it? I also got in touch with Adobe helpdesk but after 45 min on the phone they still wouldn't adress my question, only keep on asking for phone nr, email and other things to raise a case. Also ran the Adobe Application Manager but it just returns with Update Failed.
    It's a simple question.
    Has anyone running a Photoshop CS6 on a W7 machine managed to update Camera Raw beyond 7.1?

    hi apnep,
    after trying myself for 3 days I finally got in touch with one person at adobes helpdesk that could actually think and did not just respond according to a sheet in front of him. He started out from the sheet telling me that it SHOULD work but when he took over my computer he soon realized something wasn't right. It took him about 45 min of trying, installing, uninstalling and finally he found it.
    I don't know if it's something with the licensed version I have ( a corporate one) but in the installation there is one file here C:\Program Files (x86)\Common Files\Adobe\AAMUpdaterInventory\1.0.
    That AAM Updater Inventory prevents CS6 to update. I don't know why it's there but he simply removed it and voila !!
    A 5 second job once you know it =)

  • Hue/Saturation Adjustment Layer Bug in Photoshop CS6

    I noticed that most of the time I cannot copy a Hue/Saturation adjustment layer in Photoshop CS6. (In about a third of all cases it works, in all others I have to create a new Hue/Saturation adjustment layer).
    Hitting Command + J will cause my Mac to make an error sound.
    Option + delete also doesn't work half the time.
    Also: I cannot do a "Stamp visible" above a Hue/Saturation adjustment layer. Hitting Command + Option + Shift + E will bring another error sound.
    I have to creat a new layer, and then create a stamp visible. But half the time this doesn't work, either. Hitting Command + Shift + N will give me another error sound.
    I have to create a different adjustment layer, then an empty layer, and only then I can create a "stamp visible".
    Only Hue/Saturation adjustment layers are affected by this - but it's a true hold-up.

    What Mac? What version of OSX? That aside, your issue sounds too exotic to be a genuine bug. Sounds more like some specific combination of settings is preventing this. could be anything from blending tricks to color profiles...
    Mylenium

  • If you're having problems making an extension for Photoshop CS6 with Configurator 3..

    I was going to ask for help here, but before posting I decided to try one last experiment to see if it would work. Yesterday I tried making a simple one button panel inside Configurator and exporting it to Photoshop CS6. I put it in the plugins\panels directory. Start Photoshop, nothing... I tried looking at how to create an extension manually and signing it in order to install it with Extension Manager, and my brain nearly melted.
    So today I tried installing an older version of Photoshop (CS 5.5). The difference was that I selected Photoshop CS5/CS5.5 in the create new panel dialog in Configurator instead of CS6. Export Panel..It worked! Then I tried the same thing for my install of Photoshop CS6, selecting Photoshop CS5/CS5.5 as before in Configurator's dropdown menu.  Success!
    I hope this helps anyone who was stuck in the same place as me.

    Hmm, okay I just had a problem. I used an swf with a hue strip made in actionscript inside an swf loader in configurator. Tried exporting this to PS CS6's panels folder, and to my surprise it complete broke all of the other extensions in that folder. (ie. Photoshop refused to load any other non-defualt extenstions at all just because one was borked.). Very very stupid.  So I went back to PS CS5, everything was working perfectly. Then I closed it and went back to PS CS6, and suddenly my test panel was working again. I have no idea why PS CS5 "fixed" PS CS6, it doesn't make sense really.  I think I'll be going back to CS5 to do all my work as CS6 is really buggy about extensions, and I really need a color wheel for painting.

Maybe you are looking for

  • I have 2 macs w/different music with one iTunes account

    can I use both machines on the same account, or do I need to have separate iTunes accounts for each machine for Genius to work properly?

  • Best practice - caching objects

    What is the best practice when many transactions requires a persistent object that does not change? For example, in a ASP model supporting many organizations, organization is required for many persistent objects in the model. I would rather look the

  • External drive shows yellow

    I just attached a new external drive to my iMac.  I set it up to replace a drive I was using for backup.  I cleared off the old drive and want to use it to store/backup my photos.  It shows up as a yellow icon on my desktop and the other is green wit

  • In OAWS difference between different stores

    HI ALL, I have worked on tcode OAWS but could not find exact difference between the follwing -Storing for subsequent entry -Storing for subsequent assignment -Store and entry -Store and assign           -Assign and store Can nyone make me clear. Rega

  • Adobe form is not displayed via function module

    Hi to all, I have written a function module. Import parameter: ADOBEFORM_NAME type FPNAME. DATA: fm_name           TYPE rs38l_fnam,            fp_docparams      TYPE sfpdocparams,          fp_outputparams   TYPE sfpoutputparams. CALL FUNCTION 'FP_JOB