I am trying to run an unix shell command from my apple script,and i attached this script to a hotfolder on my desktop. The functionality of my folder action is that when i drop a tif file in to my hot folder it will call rgbseps unix script passing filename as one argument and output filename as 2nd argument and separations1 as 3rd,separations2 as 4th and separations3 as 5th arguments.
Below is my code.I am getting an error like separations can't be done.Could you please help me with this
Thanks
Anu.Nuthakki
DuPont
on adding folder items to this_folder after receiving dropped_items
set item_count to number of items in dropped_items
repeat with i from 1 to item_count
set the_dropped_file_path to item i of dropped_items
set item_info to info for the_dropped_file_path
set item_path to the quoted form of the POSIX path of the_dropped_file_path
if name extension of item_info is "tif" then
try
display dialog ("Item #" & i as string) & ": " & ((POSIX path of the_dropped_file_path) as string)
do shell script ("rgbseps " & item_path & " test 1.0 1.0 1.0 ")
on error
display dialog "Error:Can't make separations"
return
end try
--end tell
end if
end repeat
display dialog "Separations done"
end adding folder items to