Automator workflow of the month: Export contacts to Excel
#1
Posted 02 July 2012 - 05:01 AM
#2
Posted 02 July 2012 - 07:51 AM
THANKS
#3
Posted 02 July 2012 - 08:15 AM
rcgregory, on 02 July 2012 - 07:51 AM, said:
You could cheat by using an IS NOT condition in the first action. So. ZIP Code Is Not ABCDE. The action should then see that all of your contacts can be acted on, because none of them have ABCDE in the ZIP Code field.
#4
Posted 02 July 2012 - 09:45 AM
#6
Posted 02 July 2012 - 02:35 PM
stuzog, on 02 July 2012 - 09:45 AM, said:
Numbers isn't technically AppleScript-able but it can be somewhat scripted via "system event" keystrokes. This is automating via keyboard actions like you were issuing the commands yourself. This is a quick and dirty Applescript with no error trapping but it'll work. You'll want to clean up the results in Numbers afterwards.
Select all of the script below and paste into a "Run Applescript" automator action. This one automator action will replace the last two automator actions in Chris's workflow.
on run {input, parameters}
tell application "System Events"
set UI elements enabled to true
end tell
tell application "Numbers"
activate
tell application "System Events" to keystroke "n" using command down -- create new file
delay 1
tell application "System Events" to keystroke return -- select default template
delay 1
tell application "System Events" to key code 123 -- move to the left one cell
delay 1
tell application "System Events" to keystroke "v" using command down -- paste contents of the clipboard.
end tell
return input
end run
#7
Posted 03 July 2012 - 04:58 PM
Problem: This action module has checkboxes. I would like to get the "Company" field and I would like to not get the "Instant Messaging" field. If I execute the module from automator, I get exactly what is checked. However, if I launch the workflow as a service from any application (I tried with Excel and Finder) I do not get the "company" field and I get the "instant Messaging" field even though I unchecked it.
Of course, the simple solution is to always run the workflow from within automator, but does it not defeat the purpose of a "service"?
Please note that I use a French version of OS X and a US English version of Excel. However, this should not be causing a problem, because the workflow works fine when I execute it from within automator.
#8
Posted 08 July 2012 - 04:16 AM
#9
Posted 16 July 2012 - 04:43 AM
bjmac, on 08 July 2012 - 04:16 AM, said:
Just import it into Address book - it doesn't have any problems importing a csv, only exporting one...
#10
Posted 30 November 2012 - 07:24 AM
Quote
Use the @ symbol - it will export any info that contains it, and if email is one of the fields you are exporting, that will capture everything.
#11
Posted 30 November 2012 - 07:25 AM
#12
Posted 09 February 2013 - 05:34 PM
#13
Posted 10 June 2013 - 07:07 AM
Any ideas?
Help











