Scripting

Ghostscript PDF Code Page

-- version 0.1

-- © 2010 - 2012 Jürgen Schell

-- No guarantee whatsoever.

-- Regard as training example

-- http://www.j-schell.de

-- Distribution allowed if the copyright remains intact

Modified Ghostscript AppleScripts

The folder action scripts to convert PostScript print jobs, EPSF files and PDF files to PDF and bitmap images have been modified. Modifications are minor but bay be handy.

Modifizierte Ghostscript-AppleScripts

Die Ordneraktionen-Scripts zum Konvertieren von PostScript-Druckjobs, EPSF- und PDF-Dateien zu PDF und Bitmap-Bildern sind modifiziert. Die Modifikationen sind kleiner, aber können sehr praktisch sein.

Using the plist_classes

The testing code on the previous page gives some basic ideas. Here, I will explain some of them.

Date and Time in PHP plist_classes

Usually, using the date class should result in the expected value, if it is used in AppleScript. But there are some subtle details. Particularly if you use the class for other purposes than AppleScript, they may be important.

The add_timespan method is my construct, particularly designed for matching database values to AppleScript.

PHP Writer for Apple Property Lists

The code discussed here creates Apple plists in PHP. The main intention for writing it was to get a better mechanism to transfer data from databases to AppleScript – particularly to get the proper data types. Complete script libraries for database access may follow later. This part of the project may still be helpful for people using a combination of AppleScript and PHP shell scripts. This article is quite technical of course.

UTC Date to Local Date/Time AppleScript

date_from_utc

date_from_utc” is the inverse handler of “date_to_utc”: It takes an AppleScript date or a list of dates assumed to be in Universal Time Co-ordinated (Greenwich Mean Time) and returns them as AppleScript dates in the local time zone of the Mac.

UTC-Datum zu Ortszeit und -datum AppleScript

date_from_utc

»date_from_utc« ist die Umkehrung von »date_to_utc«: Der Handler nimmt ein AppleScript-Datum oder eine Liste von Daten, die als Universal Time Coordinated (Greenwich Mean Time) interpretiert werden und liefert sie als AppleScript Datum in der Ortszeit des Mac zurück.

AppleScript Calendar Funktions / Kalenderfunktionen v. 2 (Download)

Download page for calendar handlers
Download-Seite für Kalender-Handler

Essential AppleScript Calendar Handlers (v.2)

This set of AppleScript handlers provides tools for Holiday calculations and calendar conversions. Supported are the calendars Gregorian, Julian (both including Easter), Hebrew / Jewish and the ISO week calendar. A few general tools are found at the beginning.

Grundlegene AppleScript Kalender Handlers (v.2)

Diese AppleScript-Handler bieten Werkzeuge für Feiertagsberechnung und Kalenerumrechnungen. Unterstützt werden die Kalender gregorianisch, julianisch (beide mit Ostern), jüdisch / hebräisch und der ISO Wochenkalender.

Converting AppleScript Dates to UTC

This is a simple handler to convert an AppleScript date to Universal Time Co-ordinated (aka Greenwich Mean Time).

AppleScript-Daten in UTC umwandeln

Dies ist ein einfacher Handler zum Wandeln eines AppleScript Datums in Universal Time Coordinated, auch Mittlere Greenwich-Zeit genannt.

Create Bitmap Images with GhostScript (Folder Action Script)

The script calls Ghostscript to convert a PostScript print job, EPS files or PDF files to an image in the formats Tiff, JPEG or PNG. As a folder action script, it allows you to create a set of simple conversion folders for different image types and resolutions. Copy a .ps, .eps or .pdf file into such folder to have it converted.
(Modified version February 2012.)

Bitmap-Bilder mit Ghostscript erzeugen (Ordneraktionen-Script)

Das Script ruft Ghostscript auf um einen PostScript-Druckjob, EPS-Dateien oder PDF-Dateien in ein Bild in den Formaten Tiff, JPEG oder PNG zu wandeln. Als Folder-Action-Script erlaubt es, eine Reihe einfacher Konvertierungsorder anzulegen, je für die Bildart und Auflösung. Kopieren Sie eine .ps. .eps oder .pdf Datei in einen dieser Ordner um sie zu konvertieren.
(Modifizierte Version Februar 2012.)

Inhalt abgleichen