Slashdot Mirror


Revealing Hidden PDF Services in Mac OS X 10.2.4

cspiff writes "In Mac OS X 10.2.4, Apple quietly added the ability for users and developers to enhance the standard Print dialog with custom PDF-handling options. To enable it, just create a folder '~/Library/PDF Services' and populate it with aliases to applications, scripts, Unix tools, or other folders. Those items then show up in the Print dialog as optional handlers for Mac OS X's built-in 'Save as PDF' feature. Drop a renamed alias to your mail client in there, and you've added convenient 'Send PDF as Email' functionality to every application."

30 of 90 comments (clear)

  1. Holy smokin' joes... by torpor · · Score: 5, Interesting

    ... is it just me, or does OSX frickin' rock or what?

    What would you have to do to do something like this in Windows land? Some sort of .DLL monkeybusiness? Registry hacking?

    Man, am I ever glad I switched. Friend of mine just came to my office to report yet *another* full re-install of WinXP is required on his test machine because ... 'something has gone wrong with the USB driver updates'.

    Can he figure it out? No. Is he stupid? No. Does Microsoft suck at designing OS's that make sense? Yes.

    --
    ; -- the corruption of government starts with its secrets. a truly free people keep no secrets. --
    1. Re:Holy smokin' joes... by slyborg · · Score: 2, Interesting

      Not to burst the ol' Machead bubble, but let's be realistic. Any OS can have problems. I've been using a Mac since the Fat Mac, and have never personally owned a Win box, but I love the platform in spite of its problems, not because it has none.

      I updated 3 machines (BW G3, Pismo, iBook) to 10.2.4. Two went fine, the iBook gray screened at the OF prompt and I had to reload and reupdate the bitch from scratch, which took 4 hours. I was not feeling the Mac love on that one. And the XP box I use at work has been solid (except for a bad memory module) for the six months I've had it.

      I frankly don't see a stability difference between the platforms.

    2. Re:Holy smokin' joes... by sweet+reason · · Score: 4, Funny

      Can he figure it out? No. Is he stupid? No. Does Microsoft suck at designing OS's that make sense? Yes.

      does a corporate IT exec want a platform that makes his department large and indispensible? yes. does MS know its market? yes.

      --
      Everything should be made as simple as possible, but not simpler. -- A.E.
    3. Re:Holy smokin' joes... by andrewski · · Score: 2, Funny

      What would you have to do to do something like this in Windows land?

      1. Sweep Dell off desk onto floor.
      2. Call Apple.
      3. Order Powerbook.

  2. more info on by cyman777 · · Score: 4, Informative

    http://www.macosxhints.com/article.php?story=20030 214080306398&query=pdf

    OS X makes many things comfortable. Could not believe a 9 times reboot to update win2000 to the latest service packs and progs. But furtunately I am running in only for testing reasons in virtual pc so my work does not stop during rebooting in a OS X window ;-)

  3. Two different approaches by kruetz · · Score: 4, Interesting

    Really, is it a surprise that Apple continues to survive in the MS-dominated world? Look at the "innovations" from Microsoft - Media Center, DRM, Windows Update (damn, you need IE for that), ... nothing really to make most users say "geez, that IS useful. cool!"

    Now look at Apple - "you mean I can now automatically do basically anything with this PDF I'm about to print? Damn, that sounds really useful. I'll be able to get this done way quicker and have more time for X" (see here)

    BTW, MS has VBA, which can be used to do all sorts of shit on your PC, like Outlook viruses, Word viruses, etc, but Apple's AppleScript seems to be relatively secure whilst still providing enough functionality (see the bottom of this). Although perhaps it's because Apple's marketshare isn't seen as big enough for virus-writers to really take notice - I don't know.

    Okay, that's not exactly a rock-solid proof, but I think it does illustrate the orthogonal directions Apple and MS seem to be taking - MS wants more and more control of what you do with your computer (eg, WM8 or 9 or whatever they're up to), while Apple introduces features like the aforementioned that are actually somewhat useful. They also make changes when their users whinge (eg, some of the stuff they put in Jaguar to satisfy old-skool Mac fans).

    Perhaps this is just part of Apple and Steve Jobs being 'cool', but it sure makes sense in the OS industry. I'm almost at the stage where I'd consider going MacOSX (with X11) when I next upgrade (at least a year from now, though)

    --

    This sig intentionally left bla... dammit!
    Who's got the whiteout?
  4. Apple gets it... by peterdaly · · Score: 3, Interesting

    I have had my Yao laptop for about 3 weeks now, after not having a Mac since system 8 had just come out.

    While I think it has some neat features, other people around me are dumbfounded that I can print anything into PDF. PDF -> Mail is something that QuickBooks/Mac has been missing. Not that I use that feature of Quickbooks, but maybe that is something they left out knowing this was coming.

    Does anyone have an sites where I can find scripts that do these things?

    BTW - I entertained people in meeting for about 5 minutes yesterday with my "YaoBook"...taking requests to minimize and maximize windows, just so they could watch the gennie effect into and out of the dock. Wow. Apple really hit the marketing bullseye with that otherwise useless feature.

    -Pete

    1. Re:Apple gets it... by mbbac · · Score: 3, Interesting

      It isn't really useless. It gives visual feedback to what actually happens to the window when you click on the minimize widget. There are two other minimize effects, by the way. Only two of the three are exposed through the GUI.

      --

      mbbac

    2. Re:Apple gets it... by rhetland · · Score: 3, Interesting

      BTW - I entertained people in meeting for about 5 minutes yesterday with my "YaoBook"...taking requests to minimize and maximize windows, just so they could watch the gennie effect into and out of the dock. Wow. Apple really hit the marketing bullseye with that otherwise useless feature.

      This may be a slight bit off the main topic, but you can slow down the genie effect by shift-clicking the yellow minimize button. This is very annoying for all-the-time use, but it impresses the hell out of non-mac people....

  5. Re:Or give it to all users by avendasora · · Score: 2, Interesting

    You can give it to all users on the machine by putting it in /Library instead of ~/Library

    Okay, I'm an idiot. It only works if there is a ~/Library/PDF Services.

    BUT - If you have it in both places, you see double entries in the print dialog. I guess this is probably one of the reasons it isn't documented yet.

  6. Re:Wish I could run 10.2.4... by Anonymous Coward · · Score: 2, Informative

    If you check either Macfixit or Macintouch (I forget which), there's an app somebody put together to replace the modem files in 10.2.4 with the working ones from a previous version. You might give it a try, see if it fixes your connection problems.

  7. do those things by djupedal · · Score: 2, Informative
  8. Re:One strange thing by Mikey-San · · Score: 3, Informative

    Ah, but you can.

    Create both "/Library/PDF Services" and "~/Library/PDF Services". Populate "/Library/PDF Services" with whatever you like. Those items should now appear in all users' Print dialogs.

    It seems that you need the folder at the user level to get this to work.

    -/-

    --
    Mikey-San
    Karma: +Eleventy billion (mostly affected by watching Celebrity Jeopardy)
  9. visit the site! by funwithstuff · · Score: 5, Informative

    For more info on all sorts of techy Mac OS X stuff, just read www.macosxhints.com, where this hint came from. All free and sensible, with daily updates.

    Current stories include:
    Hiding information from nmap
    Accessing the 6BONE with OS X 10.2
    Automate screen captures via Grab and GUI Scripting
    Large image previews in column view
    Hear new Mail messages announced by customized voices
    Network proxies and internet access via AirPort
    Cocktail - A collection of mini-utilties in one app
    Restore Aqua look and feel in NetBeans 3.4 with Java 1.4.1
    Temporarily silence the startup sound
    Another USB to network printer conversion

    --
    it's not about the karma, it's about the whuffie
    1. Re:visit the site! by Gogo+Dodo · · Score: 2

      Or better yet, add Mac OS X Hints as a Slashbox.

  10. Services by transient · · Score: 4, Informative

    People might want to check out the Services menu as well (it's a submenu of the application menu). It contains services offered by other applications that any application can take advantage of. Among other things, it includes a menu item to send the current document in an email.

    I think the Services menu is one of the most underrated and underutilized features in Mac OS X.

    --

    irb(main):001:0>
  11. Re:Actually you can do this in Windows. It's calle by mbbac · · Score: 4, Informative

    This isn't the same thing as setting up Distiller or PDF Writer as a print driver. First off, that sort of capability is built in to the OS and is available from every standard print dialog.

    Secondly, this allows you to write AppleScripts, Perl scripts, target folders, target applications to post-process the PDF once it is created.

    Follow the links in the post or this one and you'll see that it is quite extensive.

    Secondly, you know how some applications in Windows have "Send Link By Email" commands under the File menu? Well, on OS X that is a system wide function. All an application has to to is consume services in order to be able to use them (and all but legacy applications do). Any application can also produce services.

    --

    mbbac

  12. Re:Cool Tools to use with PDF Services!? by Anonymous Coward · · Score: 2, Informative

    Try Stone Design's apps,especially PStill:

    http://www.stone.com

    http://www.stone.com/tutorials/PDF_Workflow_w_PS ti ll/index.html

  13. seems a little early for primetime by toddsnc · · Score: 2, Interesting

    I don't want to be a wet blanket but this function, while very cool, lacks the ability to name the outgoing document. It gets the moniker 'print job.pdf' and unless someone can figure out a way via scripting (perhaps to wrap the application?) this is a little non-descriptive. Will be interested to watch the progress though!

    1. Re:seems a little early for primetime by CaptCosmic · · Score: 4, Informative
      If you want to rename the PDF file, you can write an AppleScript which prompts you for a name (and possibly a location) to put the file.

      I have written an AppleScript which saves the current page into my ~/Documents/Recipts folder. One of the things it does is prompt you to name the PDF before it is saved into the receipts folder.


      on open these_items
      repeat with i from 1 to the count of these_items
      set this_file to item i of these_items
      set new_name to ""
      display dialog "Enter Name for this Receipt:" default answer the new_name buttons {"Cancel", "OK"} default button 2
      copy the result as list to {new_name, button_pressed}
      if button_pressed is not "Cancel" then
      do shell script "cp " & quoted form of POSIX path of this_file & " ~/Documents/Receipts/" & quoted form of new_name & ".pdf"
      beep
      end if
      end repeat
      end open
      --
      -> Capt Cosmic <-
  14. Great for on-line, not so for offset printing. by nycroft · · Score: 4, Interesting

    I think it's awesome that Apple is always innovating and improving the awesome OS X. The ability to automatically generate PDFs and use different scripts to regulate their behavior is a great testament to Apple's undying commitment to making user's lives easier. Publishing PDfs for on-line useage will probably become more efficient as the user writes more scripts. However, this seems like it would not be very helpful for those involved in offset printing.

    At most pre-press shops around the world, PDFs are becoming integrated into the workflow more and more. But most prfessional design programs already have their own print dialogs and methods for exporting PDFs. Take Adobe InDesign, for instance. I can already export a PDF from the File menu (though I cannot see how to regulate it with all those cool Applescripts). And why would I want to do that anyway? If I send anything to a pre-press dept. at a print shop, it will most likely be a fully separated PDF, or (in most cases) a Postscript file. Many pre-press shops cannot deal with composite PDFs yet. A lot of them are not equipped with a fully PDF workflow. That would make trapping and imposition from a composite PDF quite difficult.

    Other software titles that professionals use like Quark, PageMaker, etc. already have their own print dialogs. A high-res PDF of a four-color print job would be too large to attach to most e-mails anyway.

    I like the idea for every other usage. This new option is great for titles like Word which use the Apple print dialog. This can have many advantages. Students will most likely benefit from this as they will be able to publish their PDFs on-line to professors and teachers.

    --
    Mr. Bond, they have a saying in Chicago: Once is happenstance. Twice is coincidence. The third time is enemy action.
    1. Re:Great for on-line, not so for offset printing. by Elwood+P+Dowd · · Score: 2, Interesting

      Right. Is there some AppleScriptable method for converting an otherwise worthless composite PDF to a prepress ready color separated PDF?

      If so, write the script, throw it in the directory, and any application can produce those PDFs nice and easy-like.

      I, personally, don't do anything with PDFs so regularly as to need this feature. I would imagine that folks with established graphics workflows (such as yourself) would be the ones to benefit from this sort of thing. Maybe I'm wrong.

      --

      There are no trails. There are no trees out here.
  15. Wonder if this is a pot-shot at Distiller? by thatguywhoiam · · Score: 4, Interesting
    Regarding the Quark fiasco, and Adobe Distiller.

    Prepress designers know that the Quark/Distiller combo is basically how you get stuff done, for the most part, in recent years. However, Quark is muchos late with their application, and Adobe has yet to mention Distiller for OS X, even though they've ported pretty much everything else.

    The rumour mill has it that Adobe is holding back - or possibly has cancelled - Distiller for OS X, just to give InDesign a shot in the arm (which has Distiller-like capabilities built in of course).

    Also, it's possible that Adobe is still miffed by any of the following:

    - the knifing of Adobe Premiere by Final Cut
    - the competition for photo-management via iPhoto (notice no Adobe Album for OS X. Too bad, looks nice.)
    - the non-licensing of Display PostScript for OS X (which I believe has been nothing but a good decision for Apple; Quartz is a milestone in 2D graphics display systems, and has many advantages over old-school DP, not the least of which is support for true transparency)

    Makes you wonder if Apple is stepping up yet again to fill the void *cough*safari*cough*

    --
    If Jesus wants me it knows where to find me.
    1. Re:Wonder if this is a pot-shot at Distiller? by WillAdams · · Score: 2, Informative

      thatguywhoiam said:
      > the non-licensing of Display PostScript for OS X

      Adobe backed out of their promise to provide (first a free, then a low-cost) DPS license for Apple---this is why Apple did away with ``Yellow Box'' and came up with their Mac OS X strategy.

      Adobe also had a history of yanking the chains of people who'd bought DPS licenses---like resolution limiting it to less than 800dpi when NeXTstep 3 came out.

      For a decent alternative to Distiller for most purposes, look at Frank Siegert's spiffy pStill.app available from www.stone.com for Mac OS X, www.pstill.com for other platforms (and free for NeXTstep, w/ a special license for Linux if memory serves). Unfortunately, it doesn't afford compatibility with .joboptions files as provided by commercial printers for pre-press, but otherwise quite serviceable (and Frank's a real PostScript wizard, and I'm not saying that 'cause he's giving the NeXT version away---I licensed it early on).

      William
      (who mostly uses pdfTeX to makes .pdfs these days ;)

      --
      Sphinx of black quartz, judge my vow.
  16. Re:Or give it to all users by sweet+reason · · Score: 4, Informative

    You can give it to all users on the machine by putting it in /Library instead of ~/Library

    It only works if there is a ~/Library/PDF Services.

    that seems to be true, contrary to the apple doc.

    however, while you do have to create the folder, you don't have to put anything in it. if you want all users to see all pdf services, put the stuff in the shared folder, and leave the user's empty.

    --
    Everything should be made as simple as possible, but not simpler. -- A.E.
  17. Re:One strange thing by Vitriol+Angst · · Score: 2, Interesting

    Perhaps this may actually be the way OS X functions; A Library folder must have an equivalent instance in the ~/Library folder to be active. It would reflect an object-oriented nature of the OS, and would allow for relatively easy overrides of preferences or any setting (and this seems to be the case). The root:Library is global and sets the defaults, while the user:Library overrides the defaults. Not having the folder, means the User does not get the functionality at all. Anybody want to test this? It would be an easy way to turn of some functions for someone who wanted to make a User that was just, say a print server and turn off unneccessary functions.

    --
    >>"ad space available -- low rates!!!"
  18. try out ICeCoffEE by os4 · · Score: 2, Informative

    it is a preference panel that includes a Services CMM. Indispensible. http://www.versiontracker.com/moreinfo.fcgi?id=133 81&db=mac

  19. Wait for the Cocoa apps to come rolling in by ihatewinXP · · Score: 2, Insightful

    I couldnt agree more. Services are very immature on OSX but will surely evolve into one of those things we just take for granted. The ability to have a nifty little "Applescript convert PDF to text and email that file to _X_" systemwide script always waiting for your command (in a clean GUI manner) is to me amazing . As the Finder and other key apps move to the cocoa enviroment (where services are much more intergrated and shared with negligable extra work on the programmers side) this technology will really take off.

    But excuses aside, carbon based programs can now access the Services menu its just a matter of getting developers interested. This is one of the NeXT features that always intruiged me, im glad to see it gaining a little momentum.

    --
    ---- The real Slashdot is still here. You just have to browse at -1 to read the comments.
  20. No printer selected bug? by Kjoules · · Score: 3, Informative

    I didn't see this in the Apple discussions, and I'm not sure whether this is a bug, but PDF workflows do not work if there is no printer installed in the print dialog. Otherwise, all options (except for the default "Save as PDF...") will cause a print error.

    The workaround was to add a printer (regardless if you have one or not). I wonder if anyone has also experienced this problem.

  21. Re:Corp IT exec wants... by CrankinOut · · Score: 3, Insightful

    Nice generalization. As a "Corp IT exec," I can say that I would love to be on a reliable, secure, easily supportable personal computer environment... *that supports our applications*. Microsoft did a great job of marketing to developers in the early 90's (that's you guys) so now we are limited in our choices. Suggestion: show more developers how to build great end user applications that are platform independent, or multiplatform capable with minimal effort. How: 1. Pure HTML apps with ECMAscript (that javascript standard). Look at Konfabulator as an example. 2. Build java apps that run anywhere (don't use the fancy stuff, just the solid, version-independent simple stuff). 3. Build Fat server/thin client applications that are transportable. Build code that has a transportable GUI across platforms that use a well-designed TCP -based protocol. 4. Spend a little time with IT executives to understand better what problems they are paid to solve, then help them solve them.