Category Archives: Code

Mac ready “lightbox” close widget

I use a Mac, you use a Mac. Our close window button is in the top left corner of the window so it’s convenient when a JavaScript pop-over puts the “button” there, though most don’t. A few I run into I’ve decided to throw some CSS at to fix them.

/**** Mac ready "close" widget ****/
/* WordPress admin "More info..." */
div#TB_ajaxWindowTitle {
position:absolute;
top:0px;
left:25px;
float:none !important;
display:inline !important;
}
div#TB_closeAjaxWindow {
display:inline !important;
float:left !important;
clear:left !important;
}
/* Amazon */
div.ap_close {
left: 24px !important;
}
span.ap_closebutton {
float:left;
clear:left;
}
/* "Fancybox" */
a#fancybox-close {
left:-15px !important;
}
/* "MultiBox" */
div.MultiBoxClose {
left:-26px !important;
}
/* Disqus profile */
a.dsq-modal-close-btn {
position:absolute !important;
top:10px !important;
left:10px !important;
}

This would of course go into your user defined CSS file. Which in Safari can be added at Safari > Preferences | Advanced – Style sheet:

AppleScript CSV numbering table generator

Found a pretty big bug involving leading zeroes that I just had the chance to encounter which caused the script to silently die when run from the AppleScript menuextra, yet run (incorrectly) from Script Editor. Should be good.
[UPDATE] Changed to manually enter number up, prompt for total number of finished pieces instead of ending number, and prompts to reverse order the numbers in case you have a rip that won’t do it on output (multi copies using “VDP” for me).
An AppleScript to generate a numbering table in comma separated value format. Works great with InDesign's data merge function.
Continue reading

iTunesDSr companion bookmarklet

For use with Safari and other browsers that support them

javascript:void(window.open('http://localhost/~User/itunesdsr/index.php','iTunesDSr','width=256,height=290,status=no,resizable=no,scrollbars=no'))

Alter “localhost” and “User” to suit your needs.