-
1. Re: need to pause the action
c.pfaffenbichler Sep 18, 2013 4:40 AM (in response to saigon80)At the worst it should be possible to create a Script that gets the current time and then gets the time again and again until the difference between the original and the current one are larger than a certain number.
But have you done a Forum search yet?
Somedody else may know of a better approach and I suspect the issue may have come up before.
-
2. Re: need to pause the action
Michael L Hale Sep 18, 2013 5:31 AM (in response to c.pfaffenbichler)You can use the built-in action pause playback option but you will need to create two scripts. One to set the option to pause and the second to set it back normal.
function setPlayback( optionID, seconds ) { //stringIDToTypeID('accelerated') //stringIDToTypeID('pause') // second argument required only when id = pause var desc = new ActionDescriptor(); var ref = new ActionReference(); ref.putProperty( charIDToTypeID('Prpr'), charIDToTypeID('PbkO') ); ref.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') ); desc.putReference( charIDToTypeID('null'), ref ); var optionsDesc = new ActionDescriptor(); optionsDesc.putEnumerated( stringIDToTypeID('performance'), stringIDToTypeID('performance'), optionID ); if(seconds!=undefined) optionsDesc.putInteger( stringIDToTypeID('pause'), seconds ); desc.putObject( charIDToTypeID('T '), charIDToTypeID('PbkO'), optionsDesc ); executeAction( charIDToTypeID('setd'), desc, DialogModes.NO ); }; setPlayback( stringIDToTypeID('pause') , 5 );and
function setPlayback( optionID, seconds ) { //stringIDToTypeID('accelerated') //stringIDToTypeID('pause') // second argument required only when id = pause var desc = new ActionDescriptor(); var ref = new ActionReference(); ref.putProperty( charIDToTypeID('Prpr'), charIDToTypeID('PbkO') ); ref.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') ); desc.putReference( charIDToTypeID('null'), ref ); var optionsDesc = new ActionDescriptor(); optionsDesc.putEnumerated( stringIDToTypeID('performance'), stringIDToTypeID('performance'), optionID ); if(seconds!=undefined) optionsDesc.putInteger( stringIDToTypeID('pause'), seconds ); desc.putObject( charIDToTypeID('T '), charIDToTypeID('PbkO'), optionsDesc ); executeAction( charIDToTypeID('setd'), desc, DialogModes.NO ); }; setPlayback( stringIDToTypeID('accelerated') );Then where you need the pause have the action run those two scripts.
-
3. Re: need to pause the action
c.pfaffenbichler Sep 18, 2013 5:35 AM (in response to Michael L Hale)Good one!
As I practically never use it I hadn’t even remembered/noticed that there was a duration setting for the Playback Options’ Pause.
-
4. Re: need to pause the action
saigon80 Sep 18, 2013 6:21 AM (in response to Michael L Hale)Thanks Michael Hale alot ! That's great and help me save time working with hundreds of images .


