AppleScript

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.

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.)

PostgreSQL Access: Update

The additional two sample files, “04 first update” and “04a first update reset” deal with updating the database. The reset file simply deletes what update has written, so they may be called repeatedly for testing.

PostgreSQL-Zugriff: Update

Die weiteren zwei Beispieldateien, »04 first update« und »04a first update reset« behandeln Updates in der Datenbank. Die »reset«-Datei löscht einfach, was die andere schreibt, sodass man mehrfach testen kann.

AppleScript, SQL Statements, “do shell script” and International Formats

When creating queries for a database or issuing some “do shell script”, text formats of several data types in AppleScript are an issue. This is still haunting me. All these problems are caused by software designers. The type of designers who know, what is good for you. Converting a value to a string depending on system format settings may be good for a “display dialog“ command, but it is more than nasty for somebody who needs to enter date into an SQL database using AppleScript (or doing a lot of other “do shell script” actions).

I am talking mainly about creating commands here. Hence the topic is “AppleScript data to string” and not vice versa in most of this page. (Naturally, I am thinking about a reverse strategy to get data from a database in the proper format. But this requires some more thinking, particularly regarding the date types.)

Inhalt abgleichen