Is This Possible To Do?

Lets say I'm writing an Action that instructs the user at a certain point to select a foreground color they intend to use.  Later in this action I'd like the action to select the user selected "foreground color" and fill a selection, channel, etc., with the chosen foreground color.  I've tried countless things and can't get this to work other than have the action fill a selection with a specific RGB value.  What I need to incorporate is a command to simply "select current foreground color" and fill the selection with the correct RGB value indicated by the user.  Any clues?

If your just starting to learn Photoshop Scripting start by reading the documentation that ships with Phitoshop do not start with the ScriptListener Plugin like actions that that produces Step, Step, Step no logic. If you want to prompt the user to enter a color you need to add the logic using a supported script language like javascript. Script documentation ships with Photoshop for example if you are a Windows CS5 read these:
"C:\Program Files\Adobe\Adobe Photoshop CS5\Scripting\Documents\Photoshop CS5 Scripting Guide.pdf"
"C:\Program Files\Adobe\Adobe Photoshop CS5\Scripting\Documents\Photoshop CS5 JavaScript Ref.pdf"
There are some good tutorials on the web I started with these:
http://morris-photographics.com/photoshop/tutorials/scripting1.html
http://morris-photographics.com/photoshop/tutorials/scripting2.html
There is this forums and others over at http://www.ps-scripts.com/bb/
You can do what you want in an action by adding an action Stop like I described in my previous append.
I also have a free download on the Web about crafting actions it contains a dozen scripts to be used within Actions.
http://www.mouseprints.net/old/dpr/JJMacksCraftingActions.zip
Contains:
Action Actions Palette Tips.txt
Action Creation Guidelines.txt
Action Dealing with Image Size.txt
Action Enhanced via Scripted Photoshop Functions.txt
CraftedActions.atn Sample Action set includes an example Watermarking action http://www.mouseprints.net/old/dpr/WM900x600.jpg
Sample Actions.txt Photoshop CraftedActions set saved as a text file. This file has some additional comments I inserted describing how the actions work.
12 Scripts for actions

Similar Messages

Maybe you are looking for

  • XML Publisher Help

    Hi, We currently have a payslip report that has been developed using Oracle reports, but for this to run we have to change our NLS_LANG setting from UTF8 to WE8ISO8859P1. The problem with this is to apply patches Oracle have told us we need to have t

  • Setting default value for form field assoc with a table column

    On a "Create Record" situation I was trying to set the default values of some form fields using a page level "Process". These form fields have Source Type = Database Column. It wasn't working, I could only set non-db assoc form field values no matter

  • Email subscription with ALL messages (including replies) is a horror (for me)

    I really miss the functionality of getting only new messages/questions/treats in my email notification. If I would like to follow a treat I want/can add it to my subscription. Example: The LabVIEW board came up with 156 new messages with only 6 new t

  • About GBIP and cable for GPIO

    Hi all,   I have an old device using GPIB (HP-IB 488) for data transfer, the bandwidth is not high. It is pretty slow to transfer big data. The device said it also support a high speed cable supporting GPIO port using HP 11738A cable. I try to search

  • Need Zen Micro Photo

    My friend gave me his Zen Micro Photo MP3 player because he wanted to use his Ipod but he didn't give me a cd. Could someone rip there CD and save it as a ISO for me please. Let me know if anybody can help me out with this. Thanks