Pages

Monday, March 24, 2014

Spin Wires in Diamond!

Check out our new paper that came out in Nature Nanotechnology!
http://www.nature.com/nnano/journal/vaop/ncurrent/full/nnano.2014.39.html

Sunday, March 2, 2014

Batch Convert Pages to DOCX or PDF

Here are some programs to batch convert Pages files to .docx or .PDF. This is written in applescript, and saved as an "application", so just drag and drop the files you want to convert onto the application.

Choose your desired program to download:
Convert Batch Pages to Docx_v1 --> deletes .pages file that you are converting
Convert Batch Pages to Docx_v2 --> keeps original .pages file that you are converting

Convert Batch Pages to PDF_v1 --> deletes .pages file that you are converting
Convert Batch Pages to PDF_v2 --> keeps original .pages file that you are converting

The code that these applications (droplets) use is this:

on open theFiles
tell application "Pages"
repeat with aFile in theFiles
open aFile
set sourceFolder to POSIX path of aFile
set newsourceFolder to characters 1 thru -8 of sourceFolder as string
set theFolder to newsourceFolder & ".docx"
export front document to POSIX file theFolder as Word
close front document
end repeat
end tell
tell application "Finder"
repeat with aFile in theFiles
delete aFile
end repeat
end tell
end open