I'm super desperate and hoping someone can help me. I need a folder action so when I drop a numbers file into the folder it converts it to a PDF and junks the numbers doc. Can anyone share or make me this? Been trying to make one myself but just can;'t get it to work
This seems to work, but will export the PDF to your desktop.
on adding folder items to this_folder after receiving added_items
repeat with this_file in added_items
tell application "Finder"
set theInfo to properties of this_file
set theName to name of theInfo
set theName to (characters 1 through -9) of theName as text
set thePath to desktop as string
end tell
tell application "Numbers"
activate
open this_file
set thisDoc to document 1
export thisDoc to file (thePath & theName & ".pdf" as string) as PDF
quit
end tell
tell application "Finder"
delete this_file
end tell
end repeat
end adding folder items to