• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting a pause for user input in PS CS6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting a pause for user input in PS CS6


  • Subject: Re: Scripting a pause for user input in PS CS6
  • From: Stan Cleveland <email@hidden>
  • Date: Thu, 28 Feb 2013 18:43:50 -0800

On Feb 28, 2013, at 6:10 PM, André Boey wrote:

> Mac OS X versions from 10.6.8 to 10.8.2
> Photoshop CS6
>
> Not terribly familiar with AppleScripting Photoshop but was asked today if this can be done:
> Is it possible to add a pause or dialog to a script that batch processes images in order to have the user make a background color selection?
>
> Briefly, the script iterates through a folder of images, resizing each image, adjusting resolution, expanding the canvas, adding a copyright line, then saving and closing. What the user would like to do is choose a background color before expanding the canvas. Because the images vary greatly in color composition, the user wants some discretion in selecting the background color for each image rather than having it hard coded in the script.
>
> Photoshop's own color picker would be the ideal tool for this. Any ideas how this, or something similar, might be accomplished?

Hi Andre,

I've used two methods to pause script execution while a user makes changes via the UI.

One is to just throw up a dialog box:
	with timeout of 300 seconds -- adjust as desired
		display dialog "Click OK to continue script execution."
	end timeout

The other method is for the script to add an empty path or channel to the current Photoshop document and name it "Delete Me To Continue". The script would then go into a repeat loop that keeps checking for that path or channel. When it no longer exists (because the user deleted it), the script exits the loop and continues executing.

Stan C.
--
"There are two types of complex systems: those that have grown out of simpler systems and those that do not work."  -- unknown


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >Scripting a pause for user input in PS CS6 (From: AndrĂ© Boey <email@hidden>)

  • Prev by Date: Scripting a pause for user input in PS CS6
  • Next by Date: Re: Eject image
  • Previous by thread: Scripting a pause for user input in PS CS6
  • Index(es):
    • Date
    • Thread