Determine the capacity of host of a plugin Automation application

Sorry, I tried like crazy looking for an answer to this in the SDK documentation and in this forum.

I have a plugin of automation that works in both 7ish-10 and complete Photoshop CS3/4/5.  However, I want to determine the host application is "capable dynamic object" in order to do things in my code conditionally.

Preferably, I wonder if there is a Boolean property that I can access through some PICA (or other) callbacks to determine if the host can manage dynamic objects.

My current backup is the property of 'keyHostName', but I would like to avoid having to maintain / rely on string comparisons in order to determine whether the host is a dynamic object that is capable.

Found an example at least to determine whether or not the host program's elements in the sample sdk code under: $SDKROOT/samplecode/automation/getter/common/Getter.cpp:185

going to factor out of these goto however.

Tags: Photoshop

Similar Questions

  • Determine the vCenter management host

    Is it possible with PowerCLI / PowerShell to query a host and have it return the address IP (or name) of the vCenter which is manageing that host?

    version 5.0 of vCenter

    ESX (i) version 5.0

    PowerCLI version 5

    Thank you

    Drew

    Hello, DrewK201110141-

    I think that you are looking for the ManagementServerIp of the ESXi host object property.  By the API to this hyperlink reference, this property contains the 'IP address of the VirtualCenter Server manage this host, if necessary'.  A couple of other responses here were heading to the server to which you connected with your session PowerCLI, but you want the vCenter server, which currently manages the host gave (as appropriate), it seems.  If so, you should be able to get this type:

    ## get the management server IP info (if any) hostsystemsGet-View -ViewType HostSystem -Property Name,Summary.ManagementServerIp | Select Name, @{n="MgmtVCenterIP"; e={$_.Summary.ManagementServerIP}}
    

    The output should be something like:

    Name        MgmtVCenterIP
    ----        -------------
    myESXiHost  192.0.0.31
    

    If you are connected to a vCenter server, which should return the info for all HostSystems said in the that vCenter inventory.  Or, if you're connected directly to a host, it will be back to the host only one information.  How do I?

  • How to determine the esxi host installation date

    I need to write the installation date of the host all, is it possible to determine the date of installation.

    We use following command to get the host esxi installation date,

    echo - n "ESXi install date:"; " day d @$ (printf "%d" x 0 $(esxcli system uuid get | cut-d \--f1))

    Reference: VMware KB: determination of the date of installation of an ESXi host

  • Script to determine the versions of ESX hosts

    Hi all

    I ran a few basic using Power CLi reports & a few gui based ones, but im findning it is difficult to determine the versions of the host. That is to say, I have some hosts ESX and ESXi on the same number of version 4.0.0 is there a way to filter hosts that are running on ESX as im going through a process of upgrading all hosts to ESXi 4.1.

    Thanks in advance.

    Yes, use

    Get-VMHost | Select Name,@{N="Product; E={$_. Extensiondata.Config.Product.Name}}

  • Determine the IP address of the host in the guest operating system

    In VMware Fusion 3.0, can I determine programmatically primary IP address of the host system of Windows running as a guest OS?  I see that the shared folders are mounted "host vmware", but this name seems to be only useful for mounting of volumes CIFS.

    -Curtis

    In VMware Fusion 3.0, can I determine programmatically primary IP address of the host system of Windows running as a guest OS?

    No, far from having the host it somewhere the guest knows put request (for example, create a text file in a shared folder). HGFS shared folders do not go on the network.

    If you are using NAT or the network invited only the default one host address predictable from the perspective of the guest, but this isn't the IP address that is visible from the outside.

  • Trying to increase the capacity of virtual resource Flash, no host esx and no SSD is located

    In vSphere 5.5 WebClient, click host esx-> settings-> virtual Flash Resource Management.

    Then click on the button 'Add ability '. Empty the list of hosts/SSD devices.

    I followed the instructions with this announcement, but the list of hosts/SSD devices remains empty.

    https://communities.VMware.com/thread/464660

    Anyone know how to get around this problem? Thank you!

    It works indeed. You need to do some CLI commands to mark the device as a local and an SSD, but I outlined the steps in a post on my blog:

    http://tomverhaeg.nl/VMware-ESXi/VMware-ESXi-tag-a-device-as-local-and-SSD/

  • Can you determine the model of the iPad with DK S/N * VD2?

    Can you determine the model of the iPad with DK S/N * VD2? I've upgraded to a newer iPad and need to sell the former. He reconnects with the default status, and I would go instead through the installer to get this info.

    < personal information under the direction of the host >

    Go to settings - general - about - Scroll down - must be model number

    (1241)

  • VI to determine the name of the project

    For a real-time application, I wanted to determine, at runtime, the name of the project in which the VI has been "content".  I wanted to get the name of the project (even) under four different conditions:

    • on the host, in development mode
    • on the host, in Run-Time mode (i.e. after being built as an executable)
    • on the goal of RT, development mode
    • on the aim of RT, in run mode.

    It is not so easy.  I figured out how to make the first two (use the name property of the active project development and use the next last folder directory of the Application in Run-Time mode mode), but I'm having trouble to get this information to get the target RT code.  Has anyone tried this before?  Did you?  Advice (or even downright Solutions)?

    Bob Schor

    Well, I figured out, but it's not pretty.  In the previous post, I explained why I wanted to do - here I will explain how I did this.

    There are three main modes, under which Applications can run: development mode (when you are programming in LabVIEW and press the button "Run"), Run Time System (an executable on a PC) and Embedded (code that runs on a target in real time, in the form of executable file or development).  Of these, only one mode of development gives you access live (via the Application, the active project property) in the name of the project file.  My goal is to have the user interface and the RT 'chunks' of the project in real time have access on behalf of the project, the system I'll create will use same code on two subsystems, meaning that it will run on the PC at least once in the mode of development .

    The key step is to create a 'constant VI', I'll call CONST name of the project, which consists of a single indicator of string, name of the project, which "held" the name of the project.  I initially thought to use a Global Variable, but there is a technical problem with that I will mention later.  I didn't use CONST name of the project directly, but, instead, use a 'Get the project name' VI that has, for its single release, the name of the project.

    This VI, when it runs, determines the type of request under which it is running.  If it is something other than the Mode of development, he calls CONST project name and returns its value.  If this is the Mode of development, it gets the name of the project, he returned, but just before leaving, he arranges to be updated programmatically CONST project name when it is called in the future, it will return the name of the project (update).  [Then why not simply initialize CONST project name?  I'm looking for a "generic" solution that will always return the correct value, even if I move to another project and don't remember about the change and change - all I have to do to make it work is to run once in the mode of development.  Who has ever developing code without testing before making the executable?].

    I wrote a VI gave the name of project Save, which does the following: he calls set the timer on CONST project name to define the name of the new project (this works even if we put an indicator), calls to use current default to make the new value "stick" and called "Instrument to save" to save the changes.  The problem is that CONST project name cannot be "running" in the State to use current default work without raising an error.  If the name of the Save project is simply called as a Subvi to get a project name, it will be in the State of operation as it is used in the case of non-development mode to get a project name.  The solution to this witch hunt is to use the asynchronous call with-and-Forget 'spawn' name of the Save project.  Finally, we modify register project name so that it starts with a loop "wait", examinging the State of execution of CONST name project and waiting for it to exit the executing State, indicating that it is prudent to make the change.

    Phew!  But it works!  Oddly enough, when I tried this using a Global Variable instead of my Constant VI, I kept getting errors during execution are currently lacking, but despite the mistakes, the code seemed to run correctly.  I found an article (written for LabVIEW 5!) explaining that it was expected as Globals behavior were always in the State of operation.  Actually, I just realized that I had not tried with the call-and-Forget asynchronous schema, then perhaps a decade later, LabVIEW will allow me to do this using a Global without raising an error...

    BS

  • Programmatically determine the PCI device ID

    Hello again all you lovers forum useful!

    I am writing an application for exit to and read entry from ARINC PCI card, specifically the ICAN-530 of GE Intelligent Platforms.  Now their LabVIEW drivers and the documentation is pretty good, but one of the things that I have a problem with is how to determine the ID of the Board of Directors.

    The documentation on this Board ID is marked "for PCI devices, this Council number must match the device ID assigned when the installation of the API and the corresponding device has been installed."  I'm sure that I have discovered this using MAX, but what I really want is to determine if the laptop running my application has this card special in it ARINC and if so what is its device ID, by any program without the user to select or install MAX, etc.

    I hope it's doable, but I failed to find the right screw looking through this forum and in the pallets of LabVIEW.  If someone could point me in the right direction (or definitely state that it can be done programmatically), I would be very grateful.  :-)

    Thanks in advance!

    -Joe

    Just in case where someone else finds this useful thread in the future, I got the following response from GE Intelligent Platforms (who I bought the card), that indicates there will be a relatively simple way to reach my goal by using the LabVIEW drivers.  I have not tried so I can't guarantee its effectiveness, but it sounds good.  :-)

    If the only GE avionics installed is the ICAN-530, he would have no problem invoking AR_Board_Init until you encounter a status of passage; However, if there are other cards installed AND the distribution of the CIS - x 30 - SW is installed on this host, there is a mechanism to check room types.

    The AR_Query_Device of VI VI provided in CIS - LV Version 4.10 (latest version and probably the one would have received you if purchased with the ICAN-530), can be used in the following sequence to check such allocation device number on your system without actually opening a session and during the initialization of the Council.

    (1) call AR_LoadDLL.vi with the set control system Type to be 'CIS - x 30'.

    (2) call AR_Query_Device.vi in a loop (BoardIDIn control incrementing from 0 to 15) until the indicator of Type of card is returned in 26 (type for ICAN-530) AND the errorOut.code '1 '.  The BoardIDOut indicator will be the Deviceid for the ICAN-530.  Council for the VI types are described in the online documentation and printed for CIS - LV live.

    (3) If you will be running your application, you can just go forward on the basis of the VI AR_LoadSlv and waive AR_Board_Init (as AR_Board_Init is just a combination of AR_LoadDLL and AR_LoadSlv).

    (4) If you plan on using it to work with any other type of Council other than a CIS - x 30 Board, you must call AR_UnloadDll.vi to remove the library API CIS - x 30 memory.

  • on Windows 7 Home Premium edition. Is it possible to determine the ip address of any remote login to my computer?

    My computer is running on Windows 7 Home Premium edition.    Is it possible to determine the ip address of any remote login to my computer?    I noticed that termservice was running, as well as the remote registry and winrm - and I began not to them.

    Thank you.

    My computer is running on Windows 7 Home Premium edition.    Is it possible to determine the ip address of any remote login to my computer?    I noticed that termservice was running, as well as the remote registry and winrm - and I began not to them.

    Thank you.

    Well quite simply a Win 7 Home Premium computer can NOT act as a host [DRC] Remote Desktop is not a problem. If you want to see if something needs to connect remotely with the help of another program you can look in the event viewer for clues...

    http://Windows.Microsoft.com/en-us/Windows/search#q=Event+Viewer

    You can also go to Start and type services.msc in the search window. Start the component services snap-in and stop these three services. Set Manual as well.

    If you suspect a virus or malware of any kind make sure you run a good antivirus program such as MSE or download and run Microsoft Safety Scanner or ESET online scanner...

    http://Windows.Microsoft.com/en-us/Windows/products/security-essentials

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    http://www.eset.com/us/online-scanner/

  • ASM: determine the total number of bytes read/written &amp; Ops / s

    Hello

    My environment:

    • Oracle 11.2.0.3 EE
    • SuSE Enterprise Linux 11 SP1, 64-bit
    • ASM starts on RAW LUNS (2 per group) Hitachi disk storage
    • DB-server: HP DL380 G7

    I want to disc ASM ssd drive switch, direct attach to via HP DS2700 attachment:

    • DiskGroup + DATA
      5x400GB Enterprise SSD, RAID 5, 1.6 TB of raw capacity
      used to redo, data files
    • DiskGroup + ARCH
      4x400GB Enterprise SSD, RAID0 + 1, capacity of 800GBraw
      used to redo, Archives, Flash Recovery Area

    As I understand until this SSD technology, SSD have a livetime, indicating that there is a guaranteed amount of data that can be read/written on this subject. My goal is to design a system that has no point of two ssd failure in the same RAID group.

    1. How can I determine the total number of bytes read/written in ASM starts so far?
      My idea was to dermine ASM block size (select block_size from v$ asm_diskgroup) and then look at total reads and writes columns via iostat command in asmcmd. I guess that these values are since the last start of the DSO.
    2. Is it possible to determine the IOPS / sec per diskgroup?

    Thank you
    SCSI

    Casimir wrote:

    Do the calculation for 1. gives me an odd result:

    ASMCMD disk group management controls said that the default view is the amount of bytes and that the -io parameter must be used to display the number of e/s instead.

  • VMWare Player 6 - copy / paste doesn't work is not between the guest and host

    Hi all

    I am unable to cut and paste (text) or drag-and - drop (files) between the client and host and vice versa.

    I am running Windows 7 (32-bit) guest on a host Windows 8.1 (64-bit).

    Everything else works to date works and VMWare Tools are installed.

    I spent a few hours searching and have not been able to determine if this is a known issue or just a mismatch in my environment/configuration.

    Any suggestions or comments would be most welcome.

    Kind regards

    Hoops

    Hi all

    Seems I solved the problem.  It comes down to User Account Control (UAC) prompt (in my case Windows 7 (32 bit).  I have disabled UAC in the comments and drag and drop / cut and paste now works like a charm.

    Autologin also now works. I had not tried to set up that more early.  That's where I read an article to disable UAC for AutoLogin work.

    My VMWare tools icon now displays in the system tray.

    I hope this helps someone else out there!

    Thank you...

    Hoops

  • Determine the unused space in the virtual hard drives

    I will determine the unused space in my virtual hard drives.  I want to:

    • Select a virtual machine
    • the first vmdk disk is always the OS disk in this environment.  How much space was put in service, and how much is actually used?

    • The other disks are data application.  What is the total space on these non-OS disks, and how much of this space is actually used?

    Thank you!

    You then get the results when you run this adapted version?

    Get - VM |

    Select Name,

    @{N = "Capacity of the system disk"; E = {}

    $_. Hard drives | Where {$_.} Name - eq 'Disk 1'} |

    Select CapacityGB - ExpandProperty

    }},

    @{N = 'Disk system used'; E = {}

    $hdC = get-VMGuest - VM $_. %{$_. Guest.Disks} | Where {$_.} Path - eq "C:\". »}

    [math]: round (($hdC.CapacityGB-$hdC.FreeSpaceGB), 1).

    }},

    @{N = "Another capacity of disks"; E = {}

    $_. Hard drives | Where {$_.} Name - not "disk 1"} |

    Measure-object-property CapacityGB-sum |

    Select sum - ExpandProperty

    }},

    @{N = 'other disks used'; E = {}

    [math]: Round ((Get-VMGuest-VM $_ | % {$_.)) Guest.Disks} | Where {$_.} Path - not "C:\". »} | %{

    $_. CapacityGB - $_. FreeSpaceGB

    } | Measure-object-sum |

    Select - ExpandProperty Sum), 1).

    }}

  • Determine the IP address of local login using the root account

    How can I determine the IP address of a person who connects to an ESXi host using the root account? (I don't know if the connection was via ssh or vSphere Client)

    Hello

    connects him with the address IP can be found here:

    SSH: /var/log/auch.log

    vSphere Client: /var/log/hostd.log

    Concerning

    Tim

  • Script to determine the type of OS related

    Hello

    I am trying to determine the version or the name of the operating system used by the Client of the view for use in a Powershell script. I know that in the variables view / volatile environment that ViewClient_Type stores Windows, but I would like to get more detailed, then just information Windows. I was wondering if anyone had come across similar scenarios and might be able to provide assistance or suggestions on ways to circumvent this. The environment is running VMWare View 5.0.

    I tried to use a remote WMI query - that works fine for a user admin, but the majority of users is an admin rather than on the local client, and I'm a little reluctant to the idea of having to change the WMI security on each client to make it work.

    Any help would be great.

    Thank you

    Alan

    Try this one..# ==============================================================================================
    #
    #
    # NAME: ADCompOSinfo
    #
    # AUTHOR: Mohamed Garrana ,
    # DATE  : 3/25/2010
    #
    # COMMENT:
    # This script connects to Active Directory OU or just the root of the domain and recursivly gets all the computer objects
    # for each AD computer object it gets the Opertating system Type , Version and Service pack using information of the AD object
    # ============================================================================================== 
    
    function get-alladcomputers { 
    
        Trap { Write-Host -ForegroundColor Red "   <<< Error >>>  could not connect to Active directory, please make sure that ADpath var is correctly SET !"
            Break 
    
        } 
    
        $ADpath = "LDAP://DC=mantrac,DC=win2k,DC=dom"
        $searcher = New-Object DirectoryServices.DirectorySearcher
        $RootSearch = New-Object directoryservices.directoryentry $ADpath
        $searcher.searchroot = $RootSearch
        $searcher.filter = "(objectClass=computer)"
        $allcomps = $searcher.findall()
        foreach ($comp in $allcomps) { get-adcomputerinfo }
        $objs = $allcomps | Measure-Object
        $objcount = $objs.Count
        Write-Host -BackgroundColor green -ForegroundColor blue " Script succesfully Completed on $objcount Active Directory computer objects"
        } 
    
    function get-adcomputerinfo {
        BEGIN { }
        PROCESS  {
        Write-Host $comp.Properties.name
        try {
        $name = $comp.Properties.name[0]
        $os= $comp.Properties.operatingsystem[0]
        $osver= $comp.Properties.operatingsystemversion[0]
        $ossp=$comp.Properties.operatingsystemservicepack[0]
        }
        Catch {
        Write-Host -ForegroundColor Red "   <<< WHoops ... >>>  $name : Error reading a required property from the AD computer object, this might be a cluster resource name or the property has a null value . execution will continue anyway ;)"
            continue
            }
        finally { 
    
        $computer = New-Object psobject
        $Computer | Add-Member NoteProperty Name ($name)
        $computer | Add-Member NoteProperty OperatingSystem ($os)
        $Computer | Add-Member NoteProperty OSVersion ($osver)
        $computer | Add-Member Noteproperty OSServicePack ($ossp)
        Write-Output $computer
        }
        }
        END{}
    }
    #set your variables :-  
    
    #setting the ADpath variable
    $ADpath = "LDAP://DC=microsoft,DC=com" # this will grap all the AD computer objects in the microsoft.com domain
    #$ADpath = "LDAP://OU=Marketing,DC=Microsoft,DC=dom" #this will grap all the AD computer objects in the marketing OU in the microsoft domain 
    
    #you can use the script like this to export the output into a csv file with all the computers and their OS information
    $outfile = "c:\test\ADcomps2.csv" #sets the location of the out csv file if you'r going to use Export-csv
    get-alladcomputers | Export-Csv $outfile 
    
    #you can use the script like this to see a nice grid view of all the computers and their OS information
    get-alladcomputers | Out-GridView
    

    Cheers, Udin

Maybe you are looking for

  • Clear process has a invalid name

    I try to erase a LaCie 2 TB of hard drive - use as a disk time machine on another machine. Whenever I try to delete it, I get the following error window Delete the 'battle' and creating "lace 2 GB. Clear process failed. Tap done to continue. The Deta

  • Can't access to the application data Windows 7

    I am logged on as administrator, but cannot access the Application Data folder. It shows that the folder as being locked (padlock). I have the security settings for this workstation, but cannot access many files? Where can I change the settings? Bruc

  • Question: 'Edit in Adobe Photoshop CC 2015' is grey

    I have the subscription of the CC to CC for LR & PS 2015. During the few days after an update for Creative Cloud my LR picture pull down 'Edit in Photoshop 2015' is gray and I can not automatically go from LR to Psalm settings in LR for external edit

  • Pixel drawing does not work correctly.

    It's incredibly hard to explain but I'll try.For the most part, zoom in the Web and the design with a single pixel works very well.However, occasionally and just often enough to bother, in equal amount the pixel is either placed a square on the side

  • PS the recent history in gray

    HI - recent history in PS is grayed out even after you open several files. I checked the preference of file management and it shows 30 articles. I suspect this has something to do with the file but don't know what - anyone with bright ideas?Martin