This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this script converts all PDFs and images selected in Finder | |
# to the TIFF format and appends .tif to the file name | |
set t to (time of (current date)) | |
tell application "Finder" to set sel to selection | |
set errors to {} | |
tell application "Image Events" | |
repeat with img_file in sel | |
try | |
set img_file to img_file as text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
* Example of a simple string-to-date parser. | |
* Uses AppleScript's text item delimiters to split the input string | |
*) | |
set tid to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to {"-", "T", ":", "Z"} | |
set dateString to "2011-12-23T08:00:00Z" -- what's Z for? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
* embed this applescript into an Automator workflow to batch-convert | |
* MS Word documents (.doc, .docx) into PDF using Apple Pages. | |
*) | |
on run {input, parameters} | |
tell application "Pages" | |
activate | |
repeat with doc in input |
NewerOlder