Different behavior on Mac/Win

Hello

I am currently working on an Extension of the Creative Suite, which will show a collection of images on a Panel (InDesign, Photoshop and Illustrator).

I need path of the application in a few javascript files and I'm getting weird problems on our Mac tests. I reduced the code in as few lines as possible, to show the problem.

Currently I use Photoshop CS5.1, Flash Builder 4.6 and Extension Builder 1.5 on my windows machine.

This is the code:

<? XML version = "1.0" encoding = "utf-8"? >

" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "

Initialize = "initializeHandler ()" >

< mx:Script >

<! [CDATA]

import com.adobe.csawlib.photoshop.Photoshop;

com.adobe.photoshop import. *;

protected function initializeHandler (): void

{

var app: com.adobe.photoshop.Application = com.adobe.csawlib.photoshop.Photoshop.app;

If (App.Path)

MyLabel.set_Text = app.path.nativePath;

on the other

MyLabel.set_Text = "app.path was null;"

}

[]] >

< / mx:Script >

< mx:VBox height = "100%" width = "100%" verticalAlign = "middle" horizontalAlign = "center" >

< mx:Label id = "myLabel" / >

< / mx:VBox >

< / mx:Application >

On my Windows machine myLabel shows the path of the installation directory. On our Mac app.path is zero, so it does not work.

I tried different approaches to solve this problem, but it does not work yet. Here are some ideas of what I've tried so far:

-Get the path in Javascript instead of using app.path.fsName (app.path is null on Mac in Javascript too, at least when it is called by the initialzeHandler)

-Put a timer in the initializeHandler, wait 10 seconds and try to get the path then (not a good idea and app.path is always set to null)

-Place a button on the Panel that runs the initializeHandler instead. (app.path works, but I need this to work without user intervention).

Can someone enlighten me please?

BTW. I'm a developer intern, so it is likely that there is a simple solution or an obvious mistake, do not hesitate to report them.

These discussions could help:

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

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

And read this cookbook entry:

http://cookbooks.Adobe.com/post_Creative_Suite_Extensions_and_the_Photoshop_CS5_Re-17727.h tml

Substances

Tags: Creative Suites

Similar Questions

  • I'm on a mac. I have 2 different versions of mac operating systems running on 2 different hard disks, because of needs of customers with software compatibility. If I update a cc adobe programs in a single operating system hard drive system, it will affect

    I'm on a mac. I have 2 different versions of mac operating systems running on 2 different hard disks, because of needs of customers with software compatibility. If I update a cc adobe programs in a single operating system hard drive system, it will affect older versions of programs cc in the other system of operating system hard drive?

    If, as you say, they are completely separate installations on separate hard disks, each with there own version of PS for example, there should be no way that they could interfere with each other! I assume you are using a form any of Boot Manager to load a specific version of Mac OS x?

    I did something similar at the start in a similar situation with client compatibility and not had a problem with either interfere with others!

    However, you share the programs somehow between different OS, so that would be another matter.

  • Update of Lightroom 5 victory to Lightroom 6 Mac/Win

    I have Lightroom for Windows 5 and want to upgrade to Lightroom 6 Mac/Win. It will be possible to run the upgrade on a Mac?

    Yes.  Install LR 6 on Mac and follow these instructions for migration from Windows to Mac: How can I move a computer to a new Lightroom?

  • Different behavior on the eyes; layer names are correct?

    Different behavior on the eyes; scales up and down, left right behaves as expected. All layer names are correct in artificial intelligence. Where to find a solution?Ai_layers_different_eye_behaviors.JPG

    Hmm, the sent JPG seems to be broken.

    But here's a place to look: in the Panel of the puppet, with no layers selected, you should see the behavior of face in the properties panel. Twirl in the group "Handles" to see what parts of the face it found. It shows the layers that you expect to find? (ToolTips will tell you what he's looking for.) Twirl down replacements also to see the layers of flashing. Note that if it does not find a layer of Blink for a certain look, it dimensionnera the eye that you close the eye rather than go to the work of replacement blink.

  • Network of ESXi - different behavior when installing adapter

    Hi Experts,

    I came across a strange problem on the network adapters section:

    • I was installing the ESXi 5.5 in a standalone Machine (re-usable)
    • When installing, it showed me the error on non detected network cards and I checked the compatibility of the guide and found that it was not a supported network card.
    • Then I installed 'VMware Workstation 10' on the same machine on the host operating system
    • I have created a virtual machine and tried to install 'ESXi' inside the virtual machine [just for curiosity\
    • He installed perfactly without error / warning (s).

    My concern is 'how and why ESXi comes with two different behaviors between installation Metel naked Machine v/s install inside a virtual machine on the same physical host.

    Thanks for your response in advance and I apologize if I am not able to present the screenplay with clarity.

    -Kuldeep Singh

    Under vmware workstation, the virtualized esxi uses the virtual NIC (probably E1000) driver, which is supported.  The host operating system uses its own realtek driver.

    When you try to run ESXi on bare metal, it doesn't have a realtek driver, if it fails.

    It is a driver problem.

  • Adobe Photoshop Lightroom Mac/Win 5 - issue of license

    Hello

    I have a single license for Lightroom 5 Mac/Win. I installed it on my Windows PC. Can I also install it on my new Macbook Pro, if I am the only user and use it only in one place at the same time?

    Hi Henrik,

    Yes you can.

    Click on the link below for more information

    End user FAQ license contracts

    Thank you

  • I bought Creative cloud individual training MAC &amp; WIN 12MTH membership but will not install it until next year it will still be valid then?

    I bought Creative cloud individual training MAC & WIN 12MTH membership but will not install it until next year it will still be valid then?

    Hello

    Please visit the following link:

    Using creative cloud | Creative cloud / Common Questions

    This should help answer your request, let us know if this helps.

    Kind regards

    Bani

  • Why is the site Muse seems different PC vs Mac

    Why adobe muse sites look different on a Mac vs PC? www.915day.com for example. Looks great on my mac, but when you go to the PC version it looks zoomed in at least 25 to 35%? Why? (I therefore adjusted to look good on a PC.) Frustrating, to center the Logo for a platform, means putting off center on the other. Defeated the entire purpose of Parallax scrolling. Also, who's going to pay so much per month to the creative cloud if they cannot even offer their customers continuity? I understand there is a difference between new and older browsers, but it tests the same way, even on a new browser (Windows 8 browsers). I tried to adjust the canvas to the accurate measurement of the screen on my PC, but it makes the same. Also, I lit the HiDPI just to see if that was the case. Still no solution. There is only one instance of this in the forums, and it is still gone unanswered. So I'm asking more in detail why it is a problem.

    Anyone?

    I tried to check the display of the site in several browsers on Mac and windows, but I wasn't able to verify the issue.

    I believe that you have already solved the problem.

    Thank you

    Sanjit

  • Download of Mac/Win full LR 5 students.  Download history of orders bed "not applicable". Separate downloads available for Mac

    I received an email provide me my product serial numbers and instructions to download my orders LR5.

    Download page for the shows 'not applicable' in the column "Download" next to the product: "LR 5 Mac/Win, English.

    Below are the download links active for both Windows and Mac of the LR5.

    Can I download among the active links (e.g. Win) or should there be an active download link where it is currently labeled "not applicable"?

    Nic_from_aus please click on the links that are available for download.  You can find more details about the process from download to find a download link on Adobe.com.

  • Assignment of the different behaviors for instances of a symbol

    Hello everyone, I want to assign a different behavior (action script) to different instances of (a) symbol, what should I do? Thank you very much. Sincerely Mohsena

    give everyone a different instance name and assign different behaviors for each.

  • FF13 different behavior on the two machines home page

    FF gives different results than "Home Page" on both machines.

    On the desktop, I get my set (the former google/firefox one) homepage.

    On laptop, I have two tabs, the first of about: at home, the second is my fixed home page (the same old google/firefox one).

    On the desktop when I press home, page becomes whole-home page.

    On laptop when I press home, new tab is launched to give me my whole-home page.

    The behavior on the desktop is what I expect and what I want. Which continues with Notepad and how do I do the same thing as the Office?

    Check your settings on the laptop home page, you have inadvertently defined two pages as your home page...

    See - How to set the home page

  • Different behaviors in MAX vs LabVIEW when writing the attribute IMAQdx GigE

    Hi, I'm controlling a Dalsa GigE camera in LabVIEW RT using IMAQdx.  Apart from a few quirks with interface we are image acquisition without a lot of problems at the moment.

    However, there are one or two issues that are confusing.  In this case, it is possible to set a MAX attribute (an attribute of command that tells the device to perform the internal calibration), but when you set the attribute in LabVIEW, the error 0xBFF69010 (-1074360304) unable to create the attribute is thrown.  See the attached images.

    I check if the attribute is writable before making an entry.  It is, however, the write failed, and read the iswritable attribute and then returns false.  In MAX, I can write to this attribute with no problems.

    I have to set up/read/write in my LabVIEW code that makes MAX.  MAX writes all the attributes (based on the values in the XML file) when he opens the camera or he reads simply all the values of the camera.  When LabVIEW opens a reference camera does perform the same steps that what MAX - I'm trying to figure out what could be the difference between MAX and LabVIEW, which might be the cause of this behavior.

    Any help will be appreciated.

    AnthonV wrote:

    Hi, I'm controlling a Dalsa GigE camera in LabVIEW RT using IMAQdx.  Apart from a few quirks with interface we are image acquisition without a lot of problems at the moment.

    However, there are one or two issues that are confusing.  In this case, it is possible to set a MAX attribute (an attribute of command that tells the device to perform the internal calibration), but when you set the attribute in LabVIEW, the error 0xBFF69010 (-1074360304) unable to create the attribute is thrown.  See the attached images.

    I check if the attribute is writable before making an entry.  It is, however, the write failed, and read the iswritable attribute and then returns false.  In MAX, I can write to this attribute with no problems.

    I have to set up/read/write in my LabVIEW code that makes MAX.  MAX writes all the attributes (based on the values in the XML file) when he opens the camera or he reads simply all the values of the camera.  When LabVIEW opens a reference camera does perform the same steps that what MAX - I'm trying to figure out what could be the difference between MAX and LabVIEW, which might be the cause of this behavior.

    Any help will be appreciated.

    Hi AnthonV,

    "Weird" is a good way to describe the Spyder3 when it comes to the GigE Vision/GenICam interface (as opposed to the Dalsa driver that communicates using custom commands via ethernet camera series)...

    The Spyder3 has many questions focused on the calendar. It is possible that the time between the opening of the camera and the setting of this function is different by MAX vs your code in LabVIEW. In addition, there are some cases where MAX will be deletes the error to display. Ignoring the error indicated vs you see the feature to take effect in both cases?

    The base between MAX and LabVIEW behavior is the same. In both cases when you open the unit all parameters are responsible for our camera file that has the registered device settings. This file is created the first time that you open the unit and are updated every time you click on save to MAX or call an API function to save the settings. In any case, I know that the Spyder3 has various questions backup/restore the settings of our camera files.

    I suggest talking with Dalsa on the issues you are experiencing. They might be able to put up with a newer firmware that addresses some of these issues (we have worked with them in the past to identify several of them).

    Eric

  • Different behavior between cRIO 'Run as Startup' and debugging run

    Hello

    I have an application that does a lot of things, including playing a card NI 9213 Thermocouple, which lies on a connected to a RT cRIO target expansion chassis. The application is run on the target of RT. My problem is related to a behavioral difference between opening a connection to the channels of thermocouple in debug (by clicking on the arrow on the VI run) mode and the opening of the connection through a Build specification (by clicking Run as to start).

    During execution, the VI wrote in a text file on the hard drive of the cRIO. I enclose the text files, one of the debug mode and a Run as startup mode. I have only two thermocouples connected (ch1 and ch15). From the text file, you can see the connection opens without error in debug mode, but get an error in startup mode. I've also attached an extract showing the VI that I used for the test.

    A few notes:

    Nothing to do with the VI is changed between each type of race.

    The Build specification has the attached VI selected as startup VI, everything else is default

    Someone else out there has had a problem similar to this? I feel like the debug mode should act identically to the normal start deployment. Otherwise, what's the point?

    Thank you

    I solved the problem! Or at least worked around it by setting a different bug. This another bug happened to be the same words that were this bug, to run as a startup. I'll summarize for you:

  • BlackBerry smartphones why MAC different BT with MAC?

    Hi, I was wondering my "BOLD" has the same IMEI and PIN code as that printed on the box, but the MAC does not match the MAC(which also provide on the box right side) BT. What is the difference between BT MAC and MAC? or how to sound different with my "BOLD", if they are the same?

    Thank you!!

    Hi and welcome to the forums!

    I think BT (Bluetooth) MAC and the MAC (WIFI) to make the difference. The BlackBerry smartphone is not a

    real MAC identifier.

    Thank you

    Don't forget to adjust your thread. Put the check mark in the green box containing your answer! Thank you

  • Background layer unlocks and becomes the normal "no flat" layer after using the crop tool in PS CC 2015.1 (a different behavior for older versions of PS)

    Hi all

    I found that it is more difficult to explain than I thought

    I don't like the new behavior in the latest version of Photoshop (CC 2015.1) regarding the way in which the background layers automatically unlock and convert to regular layers after using the crop tool. It's completely different to how things worked in previous versions, where a background layer remained in locked state flattened after using the crop tool.

    I get a LOT of images and this change has added an extra step to each image that I harvest, because I flatten the layers after cropping before saving the image. I looked through the preferences but cannot find a way to change this new behavior. Am I missing something?

    Thanks in advance for your help

    See if checking Delete the cropped Pixels in the tool options makes a difference.

Maybe you are looking for