Getting the name of the Action that runs this script
If I create an action in photoshop to run a script named "test script", how can determine within the "test script" what name of the action started to run this script? I am writing a script to resize my images. The scale will be determined by what Action ran this script.
Example of
Action names are 5 x 7, 4 x 6, 8 x 10
Reproduced above action will run the same script, called "scale me."
In "scale me ', the java code will determine that 4 x 6 started running" scale me. "
"Level I" will go to the section in the java code to the scale of the image loaded into Photoshop for a 4 x 6 size.
The reason for writing the code "scale me" in this way, is that I can keep only one script to resize my images.
Any suggestion or help would be appreciated.
Raymond
I don't know of all average direct to determine the name of the action that began a script. You can find the name of the action highlighted / selected with this code.
var ref = new ActionReference(); ref.putEnumerated( charIDToTypeID("Actn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") ); var desc = executeActionGet(ref); var actionName = desc.getString( charIDToTypeID("Nm ") ); var actionSetName = desc.getString( charIDToTypeID("PrNm") ); alert( 'Current selected action is: '+actionName+'\rin the action set: '+actionSetName );
But it is not infallible.
A better solution would be to set up your script to make it recordable action. The details are in the script as "JavaScript"resource guide. It you have that in place any action that registers the script you will store the values used. When the action is played again once you get these the app.playbackParameters calues. Image and layers of export files are two Adobe scripts that use a javascriptresource section.
Tags: Photoshop
Similar Questions
-
I can't dfragment c drive. I get the message run Ckdsk/f. The file is not found.
the command is CHKDSK /F.
However, it is best to run this instead: CHKDSK /R
It is unclear if you do not run the check disk drive correctly or if the check disk command / file is affected by the volatile file system.
my suggestion is to acquire a xp boot cd and boot the recovery console.
then when you get to the disk prompt run the command >: CHKDSK /R
then type exit, remove the cd and boot into windows.
-
Well well after "move Content" tutorials that have some command to move the object or remove the object... My system runs PS Adobe photoshop CC2014. How upgrading to Adobe CS6 photo shop to improve my learning with photoshop?
Well, you do not upgrade to CS6. It is a few years old. But suppose you have tutorial that shows a CS6 interface and you want to run CS6 to be on the same page. Your CC membership allows you to install and use the CS6.
Here's how get you it. In earlier Versions, choose CS6 in the menu the installation menu and you'll get it. I keep a copy for CS6 related issues.
-
Message "stop running this script?
I get a message asking me to "stop running this script" when I go to Yahoo to check my mail. I never received that message before today and I used Yahoo so busy Explorer for years. I disable the filter XSS, but that did nothing. I ran Internet Explorer troubleshooting, but has nothing to do. How can I get rid of this message, because it prevents me from my mail or do anything on Yahoo?
It's a Yahoo! (Server/webmail) mail worldwide problem.
See: Internet Explorer problem? and this thread, etc.Cordially.
-
Why do I get the message that I am running out of storage on my device when my storage icloud is practically empty?
It could be that your backup may be the cause.
See if that helps - manage your iCloud - Apple Support storage space
-
I'm unable to start Firefox. To get the message that it is already running. Cannot find my profile using '% APPDATA%\Mozilla\Firefox\Profiles| '. Restarting my computer did not help. Because I had this problem I also noticed that all my favorites that I had copied in Windows Internet Explorer also disappeared. I use Firefox as my main search engine and usually do not use Internet Explorer. I am running Windows 7 on my machine.
Try this add on the profile folder
-
I am running Firefox 3.6.23 under Windows 7 64-bit. I want to use the HP Smart Web Printing program, but under the Add-ons, I get the message that it is not compatible with this version. What worm. should I run for compatibility? I've seen both the icon on the toolbar, but it went away after the next reboot. Help.
Ray
It is listed as compatible with the versions of Internet Explorer 6, 7 and 8.
Best regards
ERICO
-
Original title: name/location of the executable that runs when you click on detect monitors?
What I need to know is the name and location of the executable that runs when you click on detect monitors in the menu screen resolution of windows 7?
Hello
Your question is better suited in the MSDN forums. Please post your question in the MSDN forums.
You can follow the link to your question:
http://social.msdn.Microsoft.com/forums/en-us/categories/It will be useful.
-
I downloaded Yosemite and now I can't open CS Production Premium 5.5 at all, I get the message that I need to install the runtime Java SE6 legacy. I am running Java 8 update 25 (later). I uninstalled and reinstalled CS5.5 Prod Prem already again so please do not suggest this. What should I do?
Try to install java link below and try it once
-
I installed CS5 on macbook pro 10.9.4. I can't get the update to run to update the applications to the latest version. He said that there was an error trying to download the update and try again later.
update directly: http://www.adobe.com/downloads/updates/
-
I am running Windows & and downloaded CS6 Master Collection and when I try to run the config file, I get an error indicating that a file is maybe missing and to download and run a couple of potential fixes. I did, but I have the same error of ge. I tried only download Photoshop 6 and run this configuration file, but get the same result. I run other non Adobe without any problem of product configuration files. What can I do to get the installer to run?
Move the files to your destop configuration and click "Run as Administrator".
If this fails, you probably have a corrupt download and should re-download the Installer file.
For more specific help, attach a screenshot of the error message.
-
GOAL: when a user takes the Quiz and fails, I wish they were able to get back underway and reviewing the materials before taking the quiz. As noted in other discussions, I have created actions advanced conditional and standard to achieve this:
- Quiz results Slide Property executes the standard action "ResultsSlideVisitedAction", affecting a variable (AssessmentVisited) to 1, an indicator that the result slide has been visited.
- If a user clicks the Retake Quiz button, instead of going to a "knowledge management", a quiz question classified early in the race with zero points, it goes to the first real quiz question. The slide to check knowledge runs the 'ExcludeKCAction', a conditional, looking to see if the result slide has been visited, which means that the quiz taken. If so, he jumps at the 1st question of the quiz slide.
- I changed my Quiz message fail to tell the user to click the button Retake (which works fine) or navigate using the table of contents to review topics and then resume the quiz. The problem with this is that if a user uses the table of contents and gets to go to the slide to verify the knowledge to conditional action, they are sent directly to the Quiz.
- So, I took a different tact and decided to ask the user to use a "Back in the race" button to review the course and then resume the quiz. Because you cannot add buttons to the slide of results, I created an invisible button to reset the AssessmentVisited variable to 0, so when the GET to the verification of knowledge, they are not sent for the quiz. I did this by adding the image on a button, and then by superimposing an invisible rectangular shape on top of the button image. This allowed me to add advanced invisible form actions. It worked!
- The last thing I want to do is to hide the table of contents, so there is no chance of the user to return without resetting the variable. I tried to add the action to hide the table of contents, but it doesn't seem to work. Is this possible? I tried to move the TOC to hide as actions of 1st, 2nd and 3rd and sill does not. Here is a screenshot of the conditional action that runs when a user clicks on my return to the button a course:
I appreciate any thoughts on a solution to hide the table of contents as well. Thank you.
Hide the TOC works only for OCD in overlay, you use a table of contents separate?
With respect to the Score slide buttons, you make it very complex, it is possible since version 6: buttons on Question/Score 6 Captivate Slides?-Captivate blog
-
I am more able to sync my I phone on my Mac and get the message that my phone cannot be used because it requires a newer version of iTunes. He tells me to go to www.itunes.com to download the latest version of iTunes... I downloaded the latest version on my mac, but what I do on my phone? I used to be able to sync the two and now I can't even download the photos from my phone on my mac...
iOS9 on a mobile device requires iTunes 12.3 or higher, which in turn requires a computer running OSX 10.8.5 or higher. Update of the system only checks the updates for the current version of the system you run, but that itself can be updated. It may or may not be possible to upgrade your computer to the system requirements. Find your computer on the web site of http://www.everymac.com model and near the bottom of the specification of the system section, he will tell what versions of the operating system, it is able to run. If you can not run a newer system, you will not be able to sync this phone to your current computer. If she can run 10.8.5 or higher, you can either buy a download for Apple OSX 10.8 Mountain Lion code online, or you can try to install the free El Capitan OSX 10.11. El Capitan can run slower on older machines and require the additional purchase of RAM. Making a big jump in versions of system is also more likely to affect the old software.
At el capitan Snow Leopard, it will make my macbook is slow? - https://discussions.apple.com/thread/7412959
Mountain Lion 10.8 purchase link United States of America - http://www.apple.com/shop/product/D6377Z/A/os-x-mountain-lion
Mountain Lion 10.8 purchase link U.K. - http://www.apple.com/uk/shop/product/D6377ZM/A/os-x-mountain-lion
Course OSX Upgrade General information, including configuration required - http://www.apple.com/osx/how-to-upgrade/
-
I have the macbook pro (OS 10.6.8) and the iphone 6 s. The latest version of iTunes is 11.4. When it is connected to the MAC, I get the message that itunes must be upgraded. How to synchronize or import/export files(images/music)? Fact is need to update itunes?
Hi sonalnj,
I understand that you cannot synchronize your iPhone as iTunes is requested it must be updated. I can help you with that.
According to the technical specifications for a 6 s iPhone, you need a Mac running OS X v10.8.5 or later version with iTunes 12.3 or later. Because you are on OS X 10.6.8 your version of iTunes is up to date with this OS.
iPhone 6 s Tech Specs
http://www.Apple.com/iPhone-6s/specs/Now to fix that, you need to update your Mac OS X 10.8.5 Mountain Lion or OS X 10.11 El Capitan. If you want to go to the Mountain Lion, you can do it with the first link below. The cost will be $19.99 and a code will be delivered to you if you can download it via the Mac App Store. Once you have upgraded, be sure to make all software updates to go with him to get the latest version of iTunes.
OS X Lion mountain
http://www.Apple.com/shop/product/D6377Z/A/OS-x-mountain-lionNow the other option is to move to OS X 10.11 El Capitan, and is a free update that you can do right in the Mac App Store, if you meet the system requirements. Take a look at the following article for more details on how to do it.
Update of OS X El Capitan
https://support.Apple.com/en-us/HT201475Nice day!
-
I received an error code 800b0100 update. I just installed windows 7 student disc and my computer guard stop. I me trying to get the updates that might help the closing of the bottom.
Hi Happyrockgeek,
Welcome to Microsoft Windows 7 answers Forum!
This problem occurs if the Windows security .dll files are incorrectly registered.
To resolve this problem, you can perform the two methods of troubleshooting, check if the problem is resolved.
Method 1:
Run (Checksur.exe) system update readiness tool.
To do this, follow these steps:
1. download and run the system update readiness tool. This tool runs an ad hoc analysis of inconsistencies that might prevent future maintenance operations. For more information about how to download and run the Checksur.exe tool, click on the number below to view the article in the Microsoft Knowledge Base:
http://support.Microsoft.com/default.aspx/KB/947821
2. try to install the updates again.
Methods 2.
Reset the Windows Update components.
1. to reset the Windows Update components automatically, click the fix button in the link below.
http://support.Microsoft.com/kb/971058
2. click run in the file download dialog box and follow the steps described in the fix it Wizard.I also suggest you to install the latest version of Windows Installer 4.5.
Follow the link below to download:
http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en
and you can also try to install after you turn off the firewall.
It will be useful.
Thank you, and in what concerns:
Shekhar S - Microsoft technical support.Visit our Microsoft answers feedback Forum.
Maybe you are looking for
-
Satellite L100 - 103 Wireless Connection / W - lan is slow
Hello everyone!I have a problem with my networkconnection wireless of my new PC toshiba laptop.Centrino 1.66 ghz, 512 MB rammy wireless card is called "Intel (r) PRO/Wireless 3945ABG Network Connection" So let me explain what the problems are:(1) the
-
How to burn the CD of backup recovery
Hello: I have Vista and lost the user guide. I would like to know how I can burn backup CD recovery now. I think I need to reinstall the operating system in the future and do need the recovery CD and instructions on the way of recovering your system
-
How to print on a HP deskjet F4500 of a Chrome Chrome cloud wireless book?
How to print on a HP deskjet F4500 of a Chrome Chrome cloud wireless book?
-
Computer webcam laptop Sony Vaio appears black
Whenever I use Skype, oovoo, cameroid.com or whatever it is where my webcam needs access to, my webcam light seems to be on, but my webcam just appears black. And when using Skype, that may not be detected and the loading icon persists. How can I sol
-
How to make an app available by HTTP?
A beginner question: I finished my MIDlet to Blackberry le Portage, everything works fine in the emulator. I don't have the equipment to do the final testing, a friend. I would like to make the app available through the net (HTTP maybe?) so that it c