Hello,
This is the initial automator workflow i made for automated printing, i use hazel to watch folders and launch it :
1 - Get indicated finder items => folder(s) specified
2 - Get folder content
3 - Filter folder content => None of following conditions true : file extention is not jpg
4 - Dispense items incrementally
5 - Add date and time => actual time hr min sec before name
6 - Move finder items => folder specified
7 - Open finder items => photoshop dropplet specified
8 - Pause => time specified according to photoshop dropplet execution
9 - Loop => number of loops specified - results as entry
At step 7 i need to place a condition if or if according to name content :
if file name contains CODE1 than open in photoshop dropplet CODE1
if file name contains CODE2 than open in photoshop dropplet CODE2
and as many as needed if i have more variables
At this point my issue is with automator function "filter finder items" that works as if and if only
I am trying to solve this with applescript but i am a newbie
Here is what i tried in place of step 7 (of course not working)
- Execute applescript
If anyone can tell me what i should try, thanks in advance
This is the initial automator workflow i made for automated printing, i use hazel to watch folders and launch it :
1 - Get indicated finder items => folder(s) specified
2 - Get folder content
3 - Filter folder content => None of following conditions true : file extention is not jpg
4 - Dispense items incrementally
5 - Add date and time => actual time hr min sec before name
6 - Move finder items => folder specified
7 - Open finder items => photoshop dropplet specified
8 - Pause => time specified according to photoshop dropplet execution
9 - Loop => number of loops specified - results as entry
At step 7 i need to place a condition if or if according to name content :
if file name contains CODE1 than open in photoshop dropplet CODE1
if file name contains CODE2 than open in photoshop dropplet CODE2
and as many as needed if i have more variables
At this point my issue is with automator function "filter finder items" that works as if and if only
I am trying to solve this with applescript but i am a newbie
Here is what i tried in place of step 7 (of course not working)
- Execute applescript
Code:
tell application "Finder"
get "filename"
if "filename" contains "AAA" then
tell application "Finder"
open file using ":Users:ADMIN:Desktop:FOLDER:dropplet AAA.app"
end tell
else
if "filename" contains "BBB" then
tell application "Finder"
open file using ":Users:ADMIN:Desktop:FOLDER:dropplet BBB.app"
end tell
else
end if
end if
end tell
If anyone can tell me what i should try, thanks in advance