Is it possible to check whether the action of a defined action exists?
In the script photoshop (CC 2014) I will execute action with action and action game that you may not be able to add more. I wonder if I can somehow checks to see if the action is first.
all the code that I have:
document = app. Open (new file(Fichierentree));
some check if there is such action?
app. doAction (actionToRun, actionSetToRun)
The easiest way is to run the action. If it throws an exception, check to see if it is the exception for missing action.
document = app.open(new File(inputFile)); try { app.doAction(actionToRun, actionSetToRun); } catch (e) { // Check e to see if it's the missing action exception. }
Or you can use this extracted from xtools/xlib/stdlib.js.
function hasAction(atn, atnSet) { function cTID(s) { return app.charIDToTypeID(s); }; var asetDesc; var rc = false; var i = 1; var asMatches = []; while (true) { var ref = new ActionReference(); ref.putIndex(cTID("ASet"), i); var desc; try { desc = executeActionGet(ref); } catch (e) { break; // all done } if (desc.hasKey(cTID("Nm ")) && desc.getString(cTID("Nm ")) == atnSet) { asetDesc = desc; asMatches.push({ index: i, desc: desc}); //break; } i++; } if (asMatches.length == 0) { return false; } for (var i = 0; i < asMatches.length; i++) { var asmatch = asMatches[i]; var asetIndex = asmatch.index; asetDesc = asmatch.desc; if (!asetDesc.hasKey(cTID("NmbC"))) { continue; } var max = asetDesc.getInteger(cTID("NmbC")); for (var j = 1; j <= max; j++) { var ref = new ActionReference(); ref.putIndex(cTID("Actn"), j); // Action index ref.putIndex(cTID("ASet"), asetIndex); // ActionSet index var desc; try { desc = executeActionGet(ref); } catch (e) { break; // all done } if (desc.hasKey(cTID("Nm ")) && desc.getString(cTID("Nm ")) == atn) { return true; } } } return rc; };
Tags: Photoshop
Similar Questions
-
A query need to check whether the database should any recovery media...
Hello
I'm at the stage of editing a database and still be opened.at this point no matter what query is available or in any other way is there to check whether the database should any recovery media or Instance recovery... ?
My goal is before opening the database, I make sure it's compatible or incompatible, and any form of recovery is necessary.
Thank you and best regards,
Rameau
Published by: ragu.dba.in on 6 March 2013 12:57 AMHi Lila,
Use these queries, YVERT should match... no fuzzy file, don't check for recovering files in v$ recover_file... spend sufficient archives & realize the audits before open reset-logs
set line 900 set pages 900 set echo on alter session set nls_date_format='dd-mon-yyyy hh24:mi:ss'; set numwidth 13 col CHECKPOINT_CHANGE# for 9999999999999999 col CHANGE# for 9999999999999999 column error format a10 column member format a60 show parameter db_recover select * from v$recover_file; select file#, status from v$datafile; select file#, checkpoint_change#, checkpoint_time, error from v$datafile_header; select distinct status from v$backup; select distinct checkpoint_change# from v$datafile_header; select hxfil file_id, fhscn scn, fhthr thread, fhrba_seq sequence, fhsta status from x$kcvfh; select distinct fhscn from x$kcvfh; select hxfil file_id, fhtnm tablespace_name from x$kcvfh; ##### Fuzzy Check #### alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'; set feedback on set heading on set pagesize 1000 set linesize 175 column checkpoint_change# format 999999999999999999999 select status, checkpoint_change#, fuzzy, to_char(checkpoint_time, 'DD-MON-YYYY HH24:MI:SS') as checkpoint_time, count(*) from v$datafile_header group by status, checkpoint_change#, fuzzy, checkpoint_time order by status, checkpoint_change#, fuzzy, checkpoint_time;
Thank you
Ajay more
http://www.moreajays.com -
check whether the work of clone was successful
Hi all
today I am cloning of virtual machines with my vCenter (scheduled tasks) and I remove my clones with PowerCLI Powershell.
But if Te my data store is full, the work of clone will be not successful, in this case, I want to get an alert.
How can I check whether my work clone was successful?
Thanks in advance
You can try:
(Get-Task | Where-Object { $_.Name -eq "CloneVM_Task"}).State
The Get-job cmdlet retrieves information about current or recent tasks.
The status value returned is error, pending, running or success.
Robert
-
Check whether the backup is suitable for restoration
DB version: 11 g
RMAN, how can I check whether or not the available backup is not corrupted?validate backup and restore to validate
http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmvalid.htm
Badin
-
Check whether the checkbox in a form is activated or not using javascript
When you click a checkbox (TBD) it must set the value of a field with a default value "1234". If uncheck us the box, it must set the field to null.
I set the box as STATIC2:; 1234 in the form.
I used the event onClick on the box and calls a function to update the column.
Inside the function I check if the box is checked using
If (document.getElementById('P4_TBD').checked = true)
{
document.getElementById('P4_COL1).value = '1234';
}
on the other
{
document.getElementById('P4_COL1).value = "; / * or $s ("P4_COL1", "");
}
It works only when the box is checked. If the checkbox is unchecked is not setting the field to null.
I checked document.getElementById('P4_TBD').checked = false instead of the else clause. It does not work.
Please help me on this issue.
Thank you
RaviWhen you use the check box or option button, your button ID is using an index. If you create a group of 3 check with ID = "MY_CHECKBOXES" boxes, APEX will create the following ID for each of your options: MY_CHECKBOXES_0, MY_CHECKBOXES_1 and MY_CHECKBOXES_2. If you want to test if the first checkboxe is checked, you will use document.getElementById('MY_CHECKBOXES_0').checked.
I didn't test a single checkbox, but I would expect your check to be "TDB_0" not "BDM" which is the frame that surrounds your checkbox group.
-
Is it possible to check whether a course is autonomous?
Hello
I use 6 Captivate for this one.
I publish my SCORM course classes, but it is possible that this course is used as independent as well. The SCORM course need access to our LMS. For students who want a stand-alone course, course folder is provided that they draw in their local systems.
Now the problem is, I gave a hyperlink texts of Web pages for download Flash Player and Acrobat Reader latest version of browsers that will not work in a self-study course.
Is there a way I can check if a course is launched as independent or LMS when it is launched, based on which I'm going to 'show' of the block of text that includes real web addresses (which I'll add)?
I have 7 Captivate as well. If this is possible in 7 Captivate and not 6, please let me know that as well.
Anthony
Ok. Now, I understand. You are right that this variable will not help you. It checks for EXE. That's the definition of Adobe's Standalone.
However, I suggest that you need to rethink your strategy here, because if you give the student the exact same published output that you have of the SGA, this output at launch will immediately search the LMS API and will throw the error to the user messages. You will probably get harassed by calls to technical support. I'd rather just send them a zipped EXE file or give a link where they can download it.
Your call. I'm going to bed.
-
Check whether the field is displayed on the screen
Hello
Is the following code, the best way to see if a field is already displayed (or not display) on a screen?
Manager manager = field.getManager(); if (manager != null) { manager.replace(field, newfield); }
Thank you!
In this case your cheque for a Manager is fine.
-
Possibility to check/compare the configuration on the Ironport changes?
Hello
We have 2 devices of Ironport S370 and several directors of the devices.
Does anyone know of a tool that could help us audit/compare the changes made by each Director? Replaces the political categories and custom specific URL access.
Thank you!
This script can help you: it creates the configuration file, it transfers by FTP and sends the diff between the latest two files from your email config:
#! / bin/bash
ironporthost = "192.168.42.42".
ironportuser = "admin".
ironportpass = "password"configdir = "/ home/backup/ironport.
"emailalert ="[email protected] / * /"
EmailSubject = "Ironport Config Diff.pathtosshpass = "/ usr/bin '.
pathtossh = "/ usr/bin '.
pathtolftp = "/ usr/bin '.
pathtomail = "/ usr/bin '.# create the new configuration file
${pathtosshpass} / sshpass Pei ' ${ironportpass} "${pathtossh} / ssh-l ' ${ironportuser}" ${ironporthost} "saveconfig 0".# fetch configuration files
CD ${configdir}
${pathtolftp} / lftp u ' ${ironportuser} "," ${ironportpass} "EI" mget EI/configuration / * xml & output "${ironporthost}# Send diff of the last 2 files
files ='ls t *.xml | head - 2 '
configdiff = "$files diff.echo ${configdiff} | ${pathtomail} / mail-s "${emailsubject}" ${emailalert}
-
Hello
Is it possible to have the same number of mobile/cell phone with several Apple ID?
If Yes, is it possible to check if the number is connected to several Apple ID? and how it can be removed?
When I changed my job, I got a new cell phone number.
I disconnected all my devices and removed my old number of my Apple ID, after that, I added my new number to my Apple ID and connected to my devices (iPhone, iPad and MacBook Air).
The thing is that the person who had my new phone number previously, had the same phone number, added to their Apple ID.
I get time iMessage and FaceTime applications contact the previous owner of my phone number.
Even if it's annoying that I don't really like, I just block the numbers I don't recognize.
But my big question is, if my friends iMessage and FaceTime applications for my new phone number can be found at the i-devices previous holders?
I hope it's understandable - because it feels like a security risk.
/ Calle
Unregister the old number
-
How to check if the device is configured for the HTTP connection data plan?
Is it possible to check if the device has data during http connection (regular data plan just not bes or bis)?
I don't want my app to make connections if it leads to an additional burden for the user by the carrier.
lol but you can provide it as an option to the user, he should know.
-
Check if the bounding box is another setting of
Using the PDETextIsAtRect function, I discovered that if returns items that do not part of the bounding box. So I wanted to know if I have two bounding boxes, is it possible to check if the an element bounding box is located in the bx covering something else.
This isn't valid C. Eh well, clearly, it compiles, but it doesn't do very well what you think. You cannot use form one<= b="">=><= c,="" only="" compare="" two="" things,="" not="">=>
-
is there a way to check if the page request was made by specific URL?
I need locking a page so it responds only to when a form is sent to our payment gateway
Is there a way to check WHO sent the page request
That is to say. If the page request to was provider of payment process form
I'm already check if the form fields are valid by xreffing with our own details
I check if the request was for the HTTPS version of our page
I would now like to check whether the application was the URL of our payment gateway
I use cgi.remote_addr and check the IP address, the only other thing you can use is the sponsor, but that can be easily spoofed.
-
How to check if the persistence Unit objects are persistent or not?
How to check if the persistence Unit objects are persistent or not?
I have correctly set up and deploy the object used as a persistence in Oracle coherence unit according to the guide Chapter 6 of tutorial for Oracle coherence 3.5
Using the RunEmployeeExample script, I had good results. I see that once the cache object is updated, the database table (employees) is also updated accordingly. Here is the result:
But I can't check whether the persistence unit is still persistent.2009-11-05 11:09:55.043/53.467 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:09:54.867, Add ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) joined Cluster with senior member 1 2009-11-05 11:09:55.604/54.028 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior memb er 1 2009-11-05 11:09:56.885/55.309 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{Sta te=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4084]} 2009-11-05 11:09:57.847/56.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service JpaDistributedCache with se nior member 1 2009-11-05 11:09:57.917/56.341 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Service JpaDistributed Cache: sending ServiceConfigSync containing 258 entries to Member 2 2009-11-05 11:10:04.086/62.510 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Deferring the distribu tion due to 1 pending configuration updates [EL Info]: 2009-11-05 11:10:14.36--ServerSession(2883071)--EclipseLink, version: Eclipse Persistence Services - 1.1.1.v20090430-r4097 [EL Info]: 2009-11-05 11:10:22.312--ServerSession(2883071)--file:/C:/JDeveloper/mywork/AppJPA/JPA/classes/-JPA login successful 2009-11-05 11:10:24.305/82.729 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): 3> Transferring 128 ou t of 257 primary partitions to member 2 requesting 128 2009-11-05 11:10:25.697/84.121 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 1> Transferring 129 ou t of 129 partitions to a node-safe backup 1 at member 2 (under 129) 2009-11-05 11:10:25.857/84.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Transferring 0KB of ba ckup[1] for PartitionSet{128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256} to member 2 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: disconnected from member 2 due to a kill r equest 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service Management with senior member 1 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service JpaDistributedCache with seni or member 1 2009-11-05 11:10:40.708/99.132 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:10:40.708, Add ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) left Cluster with senior member 1 2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:JpaDistributedCache, member=1): Restored from backup 128 partitions 2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 0, 1, 2, 3, 4, 5, 6, 7 , 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 4 4, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80 , 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 11 3, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 2009-11-05 11:28:39.800/1178.224 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:28:39.635, A ddress=192.168.8.80:8089, MachineId=24656, Location=site:metsys.metex.com,machine:mw12,process:1752, Role=CoherenceConsole) joined Cluster with s enior member 1 2009-11-05 11:28:40.231/1178.655 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior me mber 1 2009-11-05 11:28:41.633/1180.057 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{S tate=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4143]} 2009-11-05 11:30:01.658/1260.082 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service DistributedCache with sen ior member 2
Published by: jetq on November 5, 2009 11:49Re:
Does the above result shows that the persistence work is finished successfully?
Yes, it's nice. What is persistence. These are the characteristics of persistence.
Junez
-
Test whether the text box is empty - tip action
Hello
I have a form that the user is required to fill out. When the user tries to advance to the next slide, I would test to check that none of the text boxes are empty.
Ideally something like;
If ((Textbox1) == null) {}
See the legend of failure
} else {}
continue
}
I know you can use advanced actions but I'm unable to set the null value. I even tried to create a new variable and leave empty and tests textbox against that, but apparently not worked either.
I'm probably missing something simple as I am very new to Captivate.
Is it possible to submit the code of the advances in stocks using AS?
Any help would be greatly appreciated!
Concerning
Tim
Hello!
I had the same problem.
The user must enter his name.
I preset the variable of the text using the feature box "what would happen if you reach this slide." You can find it if you double-click the slide with your text box, and then find the area of "navigation". I have a German version of the A4 the names of functions differ...
Declare the variable of your text box we'll say "ABC123".
With a collateral action, you can check if the text inside the variable passed as ABC123 to something else:
If
variable_name is not equal to ABC123
then
...
on the other
...
If the variable is always ABC123 I jump to another slide with an error message.
An example, which you can find here:
http://forums.adobe.com/thread/446449?
Kind regards
Markus
-
11g ADF Faces w/ADFBC
It is possible to customize the controls for a deletion lie at the underlying level EntityImpl or ViewRowImpl?
On my page, I have a table within a collection of panels. On the toolbar of the collection of panels, I have a button linked to a delete operation on the iterator that provides the data in the table.
I want the delete button should be disabled for certain lines, from various data controls. (In my case, check if the DB line is referenced elsewhere in the DB). Is there an EntityImpl method or ViewRowImpl I can substitute to perform this check?
(I know I can replace remove() to check and throw an exception, but it would happen once the user has pressed the button on the web page.)
(I also know that I can get the desired effect at work by creating a method on a bean of support to retrieve the selected row in the table and on the basis of my custom logic control on it. However, I was wondering if there was a better way to work with the ADFBC framework to achieve.)
Thank you for reading my question.A way to do it would be to create a transient attribute in your VO, which returns true or false based on the question of whether the line can be deleted.
Then in your page have the property to disable the button depending on the value of this transitional attribute.
Maybe you are looking for
-
Problem of sound after the graphic upgrade &; PSU
System: Compaq Presario Media Center SR2019UK desktop PC. I updated the PSU (power supply) at the exit of 700W (all verified compatibility) and installed a NVidia GeForce GT 240 PCI Express x 16 video/graphics card. The new video card works perfectly
-
Officejet 5610 and Mountain Lion
Does anyone know if my Officejet 5610 all-in-one ' old' work if I update to Mac OS 10.6 to 10.8 (Mountain Lion)? Is there a driver? Thank you! Sheryl
-
Have to reset the flag of string value
Hello everyone I'm trying to reset the flag of string value. I use node string indicator property to change the color, its evolution, but when the program runs again it should start default how to do it. Thanks in advance
-
How can I print my of my IPad to the HP Officejet 6000 wireless printer network?
How to see the E609A printer network of Air from my IPad? I print very well from my desktop HP and HP laptop. The printer is configered through my router Westell model 7500.
-
I have an old Dimension 4700 and all of a sudden I start getting a yellow/orange flashing light to the front and computer will not light. The diagnostic light turned not and nor fans work. So I guess it was a power failure. I have replace the power