On 16 Jul 2008, at 4:41 AM, Mahn-Soo Choi wrote:

> Hello.
>
> Is there a simple way to export a PDF to a PDF bundle
> from command line (without using Skim GUI)?
>
> Thanks for any help in advance.
>
> mahn-soo

It takes a few lines (or one very long line), but you could do it  
using osascript. If you save the lines below in a script file and make  
it executable, you could use it from the command line.

Christiaan


#!/bin/bash

file="$1"
[ ${file:0:1} == "/" ] || file="${PWD}/${file}"

osascript \
-e "tell application \"Skim\"" \
-e "activate" \
-e "open POSIX file \"${file}\"" \
-e "save front document in POSIX file \"${file}d\" as \"PDF Bundle\"" \
-e "end tell"



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to