July 05, 2008

Ouch

MacMallMS.jpg

June 09, 2008

WWDC 2008 Keynote: New iPhone

"iPhone 3G" and less expensive. S.P.J: "We're gonna take it to the next level."
Black Plastic, same display. Flush headphone Jack (about time). Better audio.

Update: webkit in Iphone 3G is 36% faster than other 3G phones' browsers.
Update: GPS!!
UPdate: Available in 70 countries. Put any miles on the Gulfstream lately?
Update: 8Gig Sells for $199. Um. Boom?!
Update: Rolls out July 11. Take a week off.

WWDC 2008 Keynote: Mobileme == me.com

New Service "Exchange for the rest of us." Push email, contacts, calendars "in the cloud." Like .mac with Leopard server distributed voodoo ++ push. Works with iPhone, iCal, Outlook, and has a web client. Also includes iDisk tech (sort of a finder for the web). Apple is heading for the cloud. For real this time. So it appears. Update: replaces .mac

WWDC 2008 Keynote: Background processes in iPhone... sort of.

Nice. Push Notification Service. Your third party server can send to Apple's push server, which keeps a persistent connection to your phone: badges (say... how many messages are waiting in application), Alert sounds, Custom textual alerts. Not a bad solution.

WWDC 2008 Keynote: Code demo?

Seriously? Um. What? Show me, like, something. It's so easy! We'll just drag these 200 lines of code in here...

April 13, 2008

American Express Business Downloads

Note to self-- To download large numbers of transactions, use the custom reporting feature with a date range. You can get up to 24 months prior to today, which I a lot more than the date range available through the regular transaction download feature.

December 09, 2007

Always - on Print Preview

Some software is, in my experience, not quite WYSIWYG when it comes to the final printed output so I have gotten into the habit of viewing a PDF in preview before I actually send a document to my printer. This has saved many trees.

Apple makes it fairly easy to do this. Just command-P and click on the weird-looking PDF button to get the drop down menu to select "Open PDF In Preview."

preview.jpg

I would like to see most every print job automatically open in preview without needing to take my hands off of the keyboard. One can make this happen with a little bit of effort, some help from Folder Actions, and a little piece of free third-party software. Here's how I do it.

First, download and install Cups PDF per the instructions on its home page. This will create a printer and driver that dumps a pdf file into ~/Desktop/cups-pdf/. Set your default printer to CUPS-PDF.

Next, you will setup a folder action on the ~/Desktop/cups-pdf/ to open each file that gets dumped in there in preview. I keep my folder actions scripts in ~/Desktop/Folder\ Actions/, so I put the following applescript (derived from a similar script that ships with Leopard) there.

  
(*
add - new item alert

This Folder Action handler is triggered whenever items are added to the attached folder.
The script will display an alert containing the number of items added and offering the user
the option to reveal the added items in Finder.

Copyright © 2002–2007 Apple Inc.

You may incorporate this Apple sample code into your program(s) without
restriction. This Apple sample code has been provided "AS IS" and the
responsibility for its operation is yours. You are not permitted to
redistribute this Apple sample code as "Apple sample code" after having
made changes. If you're going to redistribute the code, we require
that you make it clear that the code was descended from Apple sample
code, but that you've made changes.
*)

property dialog_timeout : 5 -- set the amount of time before dialogs auto-answer.

on adding folder items to this_folder after receiving added_items
try
tell application "Finder"
--get the name of the folder
set the folder_name to the name of this_folder
end tell

-- find out how many new items have been placed in the folder
set the item_count to the number of items in the added_items
--create the alert string
set alert_message to ("Folder Actions Alert:" & return & return) as Unicode text
if the item_count is greater than 1 then
set alert_message to alert_message & (the item_count as text) & " new items have "
else
set alert_message to alert_message & "One new item has "
end if
set alert_message to alert_message & "been placed in folder " & «data utxt201C» & the folder_name & «data utxt201D» & "."
set the alert_message to (the alert_message & return & return & "Would you like to view the added items?")

display dialog the alert_message buttons {"Yes", "No"} default button 1 with icon 1 giving up after dialog_timeout
set the user_choice to the button returned of the result

if user_choice is "Yes" then
tell application "Preview"
--fire it up
activate
--open the items
open the added_items
end tell
end if
end try
end adding folder items to

Ctrl (or right) click the cups-pdf folder, Enable Folder Actions, then Configure Folder Actions via the contextual menues seen below.


EnableFolderActions.jpg

When you select "Configure Folder Actions" you'll set the script that runs every time a new file is added to that folder to the one above.

folderActions.jpg


Now every time you hit command - P to print in a application, you'll hit enter to print to your default CUPS-PDF printer, which will write a PDF to the cups-pdf folder on your desktop. The folder action will then pop-up this window (for five seconds).

PreviewMe.jpg


All you have to do is hit enter.

So! Every time I print I hit command - P, enter, wait a sec, enter. Instant preview.