Hi,
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
This communication is for use by the intended recipient and contains
information that may be privileged, confidential or copyrighted under
applicable law. If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited. Please notify the sender by
return e-mail and delete this e-mail from your system. Unless explicitly
and conspicuously designated as "E-Contract Intended", this e-mail does
not constitute a contract offer, a contract amendment, or an acceptance
of a contract offer. This e-mail does not constitute a consent to the
use of sender's contact information for direct marketing purposes or for
transfers of data to third parties.
Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean
www.dupont.com/corp/email_disclaimer.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (