applescript
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 2
MacPerl::AppleScript 0.02
MacPerl::AppleScript is a Perl extension for easily accessing scriptable Apps. more>>
MacPerl::AppleScript is a Perl extension for easily accessing scriptable Apps.
SYNOPSIS
use MacPerl::AppleScript;
#
# create Application Object
#
my $app = MacPerl::AppleScript->new("Application Name");
my $doc1 = $application->new("document 1");
my $doc2 = $application->new("document 2 of $app");
#
# directly execute Script in Application
# (auto-creates a tell "Application Name" block for you
#
$app->execute("some applescript command");
$app->execute(["some applescript command", "..." ... ]);
$app->execute("some applescript command", "..." ... );
#
# alternative way using a hashref
# script: script to get executed (string or array-ref)
# object: optional, object to be named in the "tell" block
# timeout: optional, timeout in seconds
#
$app->execute({
script => [...],
object => $doc1,
timeout => 10,
});
#
# calling functions
#
$app->open(POSIX path "/path/to/file" as alias);
$app->open($app->convert_path(/path/to/file,alias));
$doc->close();
$app->close($doc1);
#
# string interpolation to Applescript Object Name
# gets application "Application Name" for $application
# gets document 1 of application "Application Name" for $doc1
#
my $ascript_appname = "$app";
my $ascript_docname = "$doc1";
$app->execute("close $doc1"); # cool :-)
#
# getting/setting properties
#
my $foo_property = $app->{foo};
my $foo_bar_prop = $doc1->{foo bar};
my $foo_bar_prop = $doc1->{foo_bar};
$app->{bar} = "any value";
$doc1->{foo bar} = [1,2,3,4];
$doc1->{foo_bar} = {a=>1, b=>2};
my %properties = %{$app};
This module is not written for being efficient. In fact it is really inefficient but hopefully easy to use.
As AppleScript (and its way of communicating to Applications) usually has some kind of latency. The creation of readable code is the most important goal when writing this Module.
Another reason for some kind of inefficiency results in the technical problem that AppleScript is a strongly typed language. Converting types back to Perl is easy. But the other direction is not always clear, as converting a scalar from Perl to AppleScript needs some guessing.
The parts of the code that deal with these problems do some tries with different AppleScript commands wrapped in try-blocks. So usually one of the expression works without errors. The same approach is made with hash keys that can contain spaces or underscores inside the key name.
This module assumes that all strings are correctly encoded in perl internals coding sheme based on Unicode. During the conversion to AppleScript all characters inside strings that are not ascii-clean are converted to strange looking unicode-string constructing sequences. I tested a lot of character schemes including west- and mid-european languages as well as russian, greek and arabic with some applications without getting problems.
<<lessSYNOPSIS
use MacPerl::AppleScript;
#
# create Application Object
#
my $app = MacPerl::AppleScript->new("Application Name");
my $doc1 = $application->new("document 1");
my $doc2 = $application->new("document 2 of $app");
#
# directly execute Script in Application
# (auto-creates a tell "Application Name" block for you
#
$app->execute("some applescript command");
$app->execute(["some applescript command", "..." ... ]);
$app->execute("some applescript command", "..." ... );
#
# alternative way using a hashref
# script: script to get executed (string or array-ref)
# object: optional, object to be named in the "tell" block
# timeout: optional, timeout in seconds
#
$app->execute({
script => [...],
object => $doc1,
timeout => 10,
});
#
# calling functions
#
$app->open(POSIX path "/path/to/file" as alias);
$app->open($app->convert_path(/path/to/file,alias));
$doc->close();
$app->close($doc1);
#
# string interpolation to Applescript Object Name
# gets application "Application Name" for $application
# gets document 1 of application "Application Name" for $doc1
#
my $ascript_appname = "$app";
my $ascript_docname = "$doc1";
$app->execute("close $doc1"); # cool :-)
#
# getting/setting properties
#
my $foo_property = $app->{foo};
my $foo_bar_prop = $doc1->{foo bar};
my $foo_bar_prop = $doc1->{foo_bar};
$app->{bar} = "any value";
$doc1->{foo bar} = [1,2,3,4];
$doc1->{foo_bar} = {a=>1, b=>2};
my %properties = %{$app};
This module is not written for being efficient. In fact it is really inefficient but hopefully easy to use.
As AppleScript (and its way of communicating to Applications) usually has some kind of latency. The creation of readable code is the most important goal when writing this Module.
Another reason for some kind of inefficiency results in the technical problem that AppleScript is a strongly typed language. Converting types back to Perl is easy. But the other direction is not always clear, as converting a scalar from Perl to AppleScript needs some guessing.
The parts of the code that deal with these problems do some tries with different AppleScript commands wrapped in try-blocks. So usually one of the expression works without errors. The same approach is made with hash keys that can contain spaces or underscores inside the key name.
This module assumes that all strings are correctly encoded in perl internals coding sheme based on Unicode. During the conversion to AppleScript all characters inside strings that are not ascii-clean are converted to strange looking unicode-string constructing sequences. I tested a lot of character schemes including west- and mid-european languages as well as russian, greek and arabic with some applications without getting problems.
Download (0.014MB)
Added: 2006-10-20 License: Perl Artistic License Price:
1099 downloads
Early Macintosh Image LoadEr 0.11
Early Macintosh Image LoadEr allows to boot linux-m68k from a floppy on a macintosh such as MacII or Quadra 610. more>>
Early Macintosh Image LoadEr allows to boot linux-m68k from a floppy on a macintosh such as MacII or Quadra 610.
With it, you can create rescue disk, or remove the MacOS partition (needed by the legacy penguin booter) from your HD.
Create a floppy from rescue disk image
You can find floppy image from the package emile-rescue
Under linux, the command to dump image to floppy is:
# dd if=emile-rescue-x.y.bin of=/dev/fd0 bs=512 conv=sync
then, you can eject floppy with:
# eject /dev/fd0
If you are using MacOS, use MakeDebianFloppy AppleScript (you must use a floppy image with a size of exactly 1474560 bytes).
Enhancements:
- This release has improved SCSI support, allows you to create a bootable CD-ROM, adds Debian packaging, updates the PowerPC part (currently not usable), and introduces apple_driver (currently not usable).
<<lessWith it, you can create rescue disk, or remove the MacOS partition (needed by the legacy penguin booter) from your HD.
Create a floppy from rescue disk image
You can find floppy image from the package emile-rescue
Under linux, the command to dump image to floppy is:
# dd if=emile-rescue-x.y.bin of=/dev/fd0 bs=512 conv=sync
then, you can eject floppy with:
# eject /dev/fd0
If you are using MacOS, use MakeDebianFloppy AppleScript (you must use a floppy image with a size of exactly 1474560 bytes).
Enhancements:
- This release has improved SCSI support, allows you to create a bootable CD-ROM, adds Debian packaging, updates the PowerPC part (currently not usable), and introduces apple_driver (currently not usable).
Download (0.17MB)
Added: 2007-03-29 License: GPL (GNU General Public License) Price:
943 downloads
Secleted [ 0 ] software to compare
- Page: 1 of 1
- 1
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above applescript search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed