Thursday, January 18, 2018

#1 2012-05-29 05:42:01 am

macaholic
Member
Registered: 2012-04-19
Posts: 17

Automator won't continue to next step...

I have a lengthy watched folder workflow which works a treat, but I am trying to let the user know to not touch his Mac when the workflow runs.

I wanted to do this by dimming his display to almost, but not quite, black with the http://www.charcoaldesign.co.uk/shades Shades pref pane and hotkeys (Alt - [minus]) with System Events.

The AppleScript runs fine on its own, and also runs properly as the first step in the workflow.
However, Automator does not proceed onto the next step, which is to rename and open the dropped files, etc. etc.

I even saved the Shades AppleScript as an application and tried to have it as the first step of the workflow, but still Automator won't proceed past it.

Any suggestions?

Last edited by macaholic (2012-05-29 07:45:18 am)

Offline

 

#2 2012-05-30 05:42:51 am

macaholic
Member
Registered: 2012-04-19
Posts: 17

Re: Automator won't continue to next step...

Any ideas folks?

Offline

 

#3 2012-05-31 06:44:50 am

macaholic
Member
Registered: 2012-04-19
Posts: 17

Re: Automator won't continue to next step...

Can anyone offer a suggestion?

Offline

 

#4 2012-06-01 04:09:01 am

macaholic
Member
Registered: 2012-04-19
Posts: 17

Re: Automator won't continue to next step...

Seriously, I'm open to any suggestions.

Offline

 

#5 2012-06-02 08:40:00 pm

macaholic
Member
Registered: 2012-04-19
Posts: 17

Re: Automator won't continue to next step...

Nobody able to help?

Here's the script that runs.

tell application "Shades"
   activate
   repeat with x from 1 to 5
       tell application "System Events" to key code 27 using control down --key code for '-'
   end repeat
end tell

Last edited by macaholic (2012-06-02 09:17:59 pm)

Offline

 

#6 2012-06-03 06:46:06 am

macaholic
Member
Registered: 2012-04-19
Posts: 17

Re: Automator won't continue to next step...

As was pointed out in another forum the repeat scripting, although it worked, was not right. So I now have:
--
tell application "Shades"
activate
repeat 7 times
tell application "System Events" to key code 27 using control down --key code for '-'
end repeat
end tell
--
(and at the end of the workflow)
--
tell application "Shades"
activate
tell application "System Events" to key code 53 using option down --key code for 'esc'
end tell
--

I will be trying this out in my workflow later.


Oh, BTW, I use 'Shades' as it works with non-Mac monitors.
With Apple displays, I would use the 'com.app.preferences.displays' and set the slider value.

Offline

 

#7 2012-06-04 02:04:54 am

macaholic
Member
Registered: 2012-04-19
Posts: 17

Re: Automator won't continue to next step...

It seems that almost anything besides an Automator 'Files & Folders' action or a 'Pause' seems to interrupt the folder action.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)