Run the script if only for a specific computer: need advice.

I want to be sure that a group, a people has done a job "within the gates" and that they did not bring pictures under the direction of the House.

My script works only if they get the name fo PCs.

I thought to use each computer name (network name), but I couldn't get it from javascript.

Would be an another way to do it from a photoshop on PC windows7 Pro network script?

Thank you

One idea is to run a startup script to run a vbs script to set a variable in Photoshop.

For example, this script will set a variable 'processorID"with computers processor ID that can be checked using your script: -.

var processorID = $.getenv('processorID');

vbs...

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor")
For Each objItem in colItems
ProcessorID = objItem.ProcessorId
Next
Set appRef = CreateObject( "Photoshop.Application" )
Script =  "$.setenv('processorID','" & processorID & "');"
appRef.DoJavaScript( Script )

You could blur the vbs code, an example of script to do this is here...

http://StackOverflow.com/questions/4252419/free-VBScript-obfuscator

Tags: Photoshop

Similar Questions

  • You will need to run the script for some ESX hosts.

    Dear team,

    I m connected to 4 esx host, but I want to run the script only 2 esx host asking you to help me how to do?

    concerning

    Mr. VMware

    You could start the script with the cmdlet Get-VMhost to select only the two hosts that you want to output to. For example:

    Get-VMHost host1, host2. Get - VM

    Displays only the virtual machine running on host1 and host2.

  • TypeError: try to run the script compilation and go on a 'mistake' in scope cleared when message returns the transfer through images for each image. Does not affect viewing.

    TypeError: try to run the script compilation and go on a contour

    Above the error message appears when moving between images - back and forth. By clicking on the OK button removes the error message and there is no apparent problem. The window that appears refers to a JAVA Script Application (I guess that FIREFOX is the application?)

    -> Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems

    Check and tell if its working.

  • is it mandatory to run the script preclone.pl on DB level as well as on retainer for Apps

    Hi guys,.

    is it mandatory to run the script preclone.pl on DB level as well as on the application on the Source layer.

    If I'm not going to run the preclone script then cloning is possible?

    Environment:

    Oracle Apps: R12

    Database: 10.2

    Kind regards
    Sachin

    is it mandatory to run the script preclone.pl on DB level as well as on the application on the Source layer.

    Yes, it's mandatory.

    If I'm not going to run the preclone script then cloning is possible?

    Cloning can be done without preclone. You can run preclone while the services are on the rise and running.

    FAQ: Cloning Oracle Applications Release 11i [ID 216664.1]--19. # Don't fast Clone modifies the source system?

    Thank you
    Hussein

  • Access error of data while running the script in the script fdm workbench Editor

    Hello Experts,

    I get the error when I run the script in the script of fdqm established client.this editor is the error

    -2147467259 data access error and he navigates the error on line 30 on this script «Set rsAppend = DW.» DataAccess.farsTable (strWorkTableName).

    Please return me asap where I should charge peoplesoft data to one of my database of planning through fdm.

    Thanks in advance...

    You will need to build a script for integration that is an import Script that allows you to import data from SQL in FDM.

    When you create your import format, you will need to configure it with the file Type = Script and then assign the script of integration as an Expression. Assign your import format to the location that you use to import data.

    Then you can test it by going to the import stage and clicking the import button. FDM will run the integration script and data import by running the SQL query that you have defined.

    To the contrary, "Data Pump" import Scripts are used as import expressions in the import formats

    You can run a script to integrate the customer that this script requires input parameters that are passed only when then FDM import step is executed. If you want to see the raised error open the errorlog FDM. You will only be able to run this Workbench script when you want to debug data is being extracted, but in this case, you will need to comment code that inserts the data in the table. Don't forget that the work table is a temporary table that is created when you click on the import button and if you run Workbench this table does not exist

  • Run the script in photoshop indesign plugin

    Hello

    first of all, sorry for my English, second I am new in indesign plugins creation (before I made some scripts)...

    I would like to know if it is possible to create a kind of indesign plugin which can run the script on specific psd file photoshop.

    If it isn't, you can create the program that allows you to control the indesign and photoshop?

    I don't know where to start...

    Thank you.

    ExtendScript has a path called "BridgeTalk" to call scripts in applications.

    Your C++ plugin, you should first invoke a script in InDesign and then using BridgeTalk remotely invoke other applications.

    There are some documents on BridgeTalk in the Guide of the JavaScript tools available in the Help menu of ESTK.

    There was also some related discussions and examples in the forum script.

  • Run the Script on the Open Document event

    OK so I know about the spectacle of afterOpen and I think I understand how to use it, however, I do not understand how to open to a specific document.

    I don't want this script runs on all the documents that I opened, I would like to incorporate into a document and then run it whenever I open this document. Is this possible?

    Maybe run the script in the script label?

    Or I just put a script in the start Panel, and then create a session script that checks the name of each document open and then runs the script, if I have a match?

    Thank you

    As you chart put it in the startup scripts folder

    //startup script
    #targetengine "session"
    main();
    function main(){
        var myEventListener = app.eventListeners.add("afterOpen", excuteScriptLabel);
    }
    
    function excuteScriptLabel(myEvent){
              //The parent of the event is the document.
              var myDocument = myEvent.parent;
        if (myDocument.constructor.name == "Document") {
            if (myDocument.label != "")
                app.doScript(myDocument.label, ScriptLanguage.javascript);
        }
    }
    

    Then try this line on a document and save it, and then open the same file and a few others, you will notice that this code only run on this document:

    app.activeDocument.label = "alert (\"Yes\");";
    
  • Create the alarm to run the script when migrating a VM

    Very well, I create an alarm that triggers a script that runs whenever a virtual computer is migrated automatically in a DRS cluster. I see in the API documentation that I could use the EventAlarmExpression - & gt; new (eventType = & gt; "VmMigratedEvent") (or maybe one of the other dealing with migration eventType). " The problem is that I don't see a way to be able to use a RunScriptAction with an EventAlarmExpression. It seems the only way is to use the RunScriptAction with a StateAlarmExpression. Here is a code snippet showing if all goes well I would do:

    My = $vmName ' name_of_vm;

    My $alarmScript = ' / usr/sbin/vm_migration_update.pl';

    My $vm = Vim::find_entity_view (view_type = & gt; 'VirtualMachine.

    filter = & gt; {name = & gt; $vmName}) ;

    My $alarmMgr = Vim::get_service_content() - & gt; alarmManager;

    my $alarm = Vim::get_view (mo_ref = & gt; $alarmMgr);

    My $alarmExpr = EventAlarmExpression - & gt; new (eventType = & gt; (' VmMigratedEvent');

    My $alarmAction = RunScriptAction - & gt; (new)

    script = & gt; $alarmScript

    );

    My $alarmTrigger = AlarmTriggeringAction - & gt; (new)

    action = & gt; $alarmAction,

    1. red2yellow = & gt; 1,

    1. green2yellow = & gt; 0,

    1. yellow2red = & gt; 0,

    1. yellow2green = & gt; 0

    );

    My $alarmSpec = AlarmSpec - & gt; (new)

    name = & gt; "Migrated VM."

    Description = & gt; 'Trigger to run the script then from VM migration',

    activated = & gt; 1,

    expression = & gt; $alarmExpr,

    action = & gt; $alarmTrigger,

    );

    My $newAlarm = $alarm - & gt; CreateAlarm (entity = & gt; $vm, spec = & gt; $alarmSpec);

    The problem is with the AlarmTriggeringAction. There is nothing to test with an EventAlarmExpression (i.e. the EventAlarmExpression does not provide States of red/yellow/green). So the question is, does anyone know how to set up an alarm that will run a script when an EventAlarmExpression is used. Specifically, I'd like to be able to run a script each time a virtual machine is migrated automatically in a DRS cluster. Pointers would be greatly appreciated.

    David

    Try this:

    C:\Windows\system32\cmd.exe C:\VMware\VMwareCLI\scripts\call_migrate_perl.cmd

    In fact, you can just run scripts perl like this:

    C:\Perl\perl.exe C:\scripts\migrate.pl

    Note: the commands are executed under 'System', not the user of the connection currently. If you don't see it visually. You can take a look at using Windows Task Manager if necessary.

    In addition, you can have parameters of placeholder that will be replaced before the "scripts" are actually executed.

    Good luck!

    Steve JIN, VMware engineering

    Creator of VI Java API: http://vijava.sf.net/

  • Run the script

    Hi guys, I can't find anything so I ask to search:

    is it possible to run a sh file located in the db server or the web server FROM apex?

    If we can get the output of a * nix script in apex?


    Thank you!

    Hello Pabloh,

    Yes, as soon as you activate the work, it will run. Since you did not explicitly put an interval, the task will run once when activated and that's it. You must resubmit the job to run again.

    Thank you
    Don.

    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone! :)

  • Removal of the preferences of sort for a specific region

    Version 4.2.6.00.03

    Hello

    I hope someone could help me with how to erase the preferences of sort for a specific region.

    I have a classic report with a column in place to apply sorting and a form of tab that has a column in place to apply the sort.

    I have a button to clear the sort who calls a process Page:

    BEGIN

    APEX_UTIL. REMOVE_SORT_PREFERENCES(:APP_USER);

    END;

    This clears the sorting on the two regions. So, how can I set it up to only clear the sorting on the form tab?

    Hope this is clear.

    Thank you

    Joe

    Joe R wrote:

    The link for the report of the admin user preference throws a 404 error.

    Oracle has moved and have apparently never heard of redirection rules: http://docs.oracle.com/cd/E23903_01/doc.41/e21678/aadm_mg_sessions.htm#CIHEADDF

    If you exceed this problem using the links in the old posts, simply remove the "/ doc" component of the path of the URL.

    I also had a Table or view does not exist on:

    SELECT *.

    OF WWV_FLOW_PREFERENCES$;

    This is why I suggested looking at the admin report. This table is not accessible to the public in a default installation, and the information is not exposed in one of the documented views of metadata. As you will see in the report, sorting preference is stored as a name/value pair:

    Name Value
    FSP1948_P8_R57820102721076385301_SORT fsp_sort_3_desc

    Where the name is of the form FSP_P_R_SORT, and the value is fsp_sort__. If you want to remove the preference, then the name is relevant, because it is the parameter required for the apex_util.remove_preference method. However, preferably the name will be different on each environment that the application is deployed, so it is to be determined dynamically. Give the region a static ID to use as an independent environment reference and use it in a query to determine the name preferably by using the ID of the internal region of the opinion of the APEX:

    begin
    
      for region in (
        select
            'FSP' || :app_id || '_P' || :app_page_id || '_R' || region_id || '_SORT' sort_pref
        from
            apex_application_page_regions
        where
            application_id = :app_id
        and page_id = :app_page_id
        and static_id = 'region-static-id')
      loop
        apex_util.remove_preference(region.sort_pref);
      end loop;
    
    end;
    

    Probably a good idea to create this as a reusable utility function.

  • "Cannot run the script at line 1. File or folder does not exist. »

    Whenever I have start AfterEffects, I get an error as he is looking to find my recent projects.  The error is as follows: "unable to run the script at line 1. File or folder does not exist. "I haven't changed the location in one of my project files.  It's the same external drives that I use for months.  When I click on OK the same window opens several times and then finally the historic window opens completely blank and empty.  I am able to reopen projects however since the RECENT PROJECTS drop in the top bar.  It is a very strange and disturbing behavior.  In addition, I always use 13.7.2 because when I go to update it is impossible to connect and gives me this error.  I sat with Adobe support for an hour today, and we couldn't understand.  As I am in the middle of major projects, I decided to not update, but this error at startup is very worrying.  Someone has an idea of what could go wrong or how I can fix this?

    Thank you very much for your time.

    -Fredo

    Screen Shot 2016-07-06 at 7.21.26 PM.pngScreen Shot 2016-07-06 at 7.21.11 PM.png

    Ok!  Just got a response and an Adobe technical support solution.  The problem is that there is a problem with these versions of sequels (and I found the same problem in first to my horror this morning as well!) and the last couple Mac OSs.  The solution is to close the window "library".  It is then normally.  Apparently they fixed in the last update, but I found the same problem on my second computer, which has been updated.  Anyway, if anyone has this problem, close your cc library window.  Voila.

  • All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    Script launched in until OS user 'A' on the 'A' server which launches sqlplus, then connects to a remote database through a service of tnsnames.ora as another user of the database and the results of this script are spoulées on the server "A".

    The file queued on the old server is written with rw-rw-r: read write user, group read the writing, reading and possession header that is the user of the OS. The file queued on the new server is written to rw-r-r user: reading writing, reading group, public reading and ownership oracle: dba.

    "" The user then has no privileges to modify the file and continue the process of transmitting the file, editing and deleting the file for the next set of commands. This allows us to keep the possibility to migrate to the new server we are unable to process orders.

    $ORACLE_HOME/bin/sqlplus - s user/password@prd1 @./script/CustomScript/R12_OM_UFPC-oracle.sql

    Background: old server running 4.8, Oracle 10.2.0.4 OEL

    New server running OEL 6.5, Oracle 11.2.0.4

    Tested so far:

    File and update umask to 0002 instead of 0022 is now generated as rw-r-r. However, the property is still oracle: dba.

    Update of ownershipt of $ORACLE_HOME/bin/oracle.exe of oracle: oracle (edi added the user to the oracle group) and chmod 6751 oracle.exe. This created several problems where crucial scripts, that is to say of sqlplus failed to run.

    Added! chmod 755 output.file.name - OS user 'A' is not allowed to change to mod.

    Added! command cp MV output file and that generated the file as a user of the operating system: oracle. It is a potential work around in case of emergency, but the developer would have to rewrite the countless scripts.

    Any ideas?

    I have reproduced the behavior of the old server and am able to spool a file via sqlplus under OS user. No changes have been made on the remote database server. All the changes have been on the new server hosting a small 11.2.0.4 database on a server running OEL 6.5 32 - bit OS.

    (1) removed the sticky bit $ORACLE_HOME/bin/sqlplus using chmod u-s, g-s, o - s suggestion of Billy ~ Verreynne

    (2) modified the main group for the 'oracle' user match the user operating system applications, while maintaining membership in the groups 'oracle' and 'dba '.

    -We are dealing with here EDI processes, so the Group was called edi.

    (3) modified property of the files tnsnames.ora and listener.ora for oracle: edi

    (4) restart the receiver

    (5) disconnect / reconnect

    Script runs as expected, the output file contains the correct ownership and permissions.

    Thank you all for taking a look and offering options.

    -Josh

  • Unable to run the script

    Hello

    I'm playing with host character, and so far I love it.

    However after exporting my scene and then trying to import using the AE

    New model of character animator Recording.jsx

    whenever I try to import the XML file, I get an error - Impossible to run the script on line 61.

    I'm doing something wrong?

    Thank you

    Hi Phil... After you run the script, select the first PNG file from the exported sequence. The title bar for the import dialog box has similar instructions, but it is true that it is easy to miss.

  • Run the Script before the opening of Outlook 2010

    We have a command to run to load an add-in in Outlook before you open it.   Us thinapp Office and it works very well but we have to find a way to run the script once when they first open Outlook.  Does anyone know a good way to do this?  I got to the point where I created a shortcut under Office tools to run the script manually but I want it to be transparent to the user.

    Basically, we need run the following command to load the add-in.

    servername AppInstall.exe

    Try using VB script. For examples, see here:

    Writing scripts in ThinApp | VMware ThinApp Blog - Articles from VMware

  • Please let me know why I can not download Flashplayer because it runs the scripts on the page... I bought acrobat dc 7/10.  Thank you.

    Please let me know why I can not download Flashplayer because it runs the scripts on the page... I bought acrobat dc 7/10.  Thank you very much. @@

    Hi dmrmultimedias,

    I guess you are referring to the script error using the installer online.  If so, the DPI setting has been identified as the culprit.  If the DPI setting is not set to 100%, 125%, 150% or 200% installer will return the script error.  If your DPI setting is set to something else, please set it to one of these and Setup online should work.  The team is working on a fix for this.

    To check/change the DPI setting:

    1. start the control panel and go to control Panel\All Control Panel Items\Display

    2. in the left menu, select the custom text size (DPI)

    3. in the custom configuration Windows DPI select 100%, 125%, 150% or 200% in the menu drop-down

    4. Select OK

    5. Select apply

    6. open a session/disable

    7. online installer should now run without displaying the script error.

    This is planned which will be fixed within two 2 weeks.

    --

    Maria

Maybe you are looking for

  • I ask as the engine GOOGLE search, BUT the damned TAHOO continuous commissioning. Frustrated and fed up

    get rid of YAHOO. I have GOOGLE

  • iPhoto questions

    My new Macbook Pro has never been iPhoto. I downloaded OS X El Capitan and my current system. When I try to download whatever it is associated with iPhoto, I get this message. Can you help me understand what is the problem? Message: this update is no

  • shadow of dash lines

    Hello View of a FP is attached. I have a (circled) indicator that I would remove the shadow lines, so that the numbers have no plan whatsoever (when feasible). The file is in png format, so hopefully I won't make somebodies ire up... if I have... my

  • How can I copy the name of a file, I selected by clicking?

    Hello I have a camera controlled by an interface Excel (VBA). Truogh this interface I control motors and tiara (to the report) and the data record in a database. When I use the load of the Excel button, the VBA application call the script Load_DATA_B

  • I'm unable to install KB2656368 and KB268627 updates.

    Microsoft Fixit does not work. I have System Mechanic installed on my laptop and have received the instructions from them on how to solve the problem with windows install, but this did not work either, nor a Repair.NET Framework 4 Client Profile.  I