Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.378.119 Times

MacPerl::AppleScript 0.02

  Date Added: January 27, 2010  |  Visits: 646

MacPerl::AppleScript

Report Broken Link
Printer Friendly Version


Product Homepage
Download (99 downloads)



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

Requirements: No special requirements
Platforms: Linux
Keyword: Applescript Application Application Name Bar Execute Foo Libraries Macperl Macperlapplescript Name Perl Programming
Users rating: 0/10

License: Freeware Size: 14.34 KB
USER REVIEWS
More Reviews or Write Review


MACPERL::APPLESCRIPT RELATED
Programming  -  CGI::Application::Plugin::AnyTemplate 0.18
CGI::Application::Plugin::AnyTemplate allows you to use any supported Perl templating system using a single consistent interface. Currently supported templating systems include HTML::Template, HTML::Template::Expr,...
71.68 KB  
Video Editors  -  OGMRip 0.10.3
OGMRip is an application and a set of libraries for ripping and encoding DVD into AVI or OGM files using a wide variety of codecs. OGMRip relies on mplayer, mencoder, oggenc, ogmtools and lame to perform its tasks. The GUI features a clean...
634.88 KB  
Desktop Utilities  -  TabLaunch 0.6
TabLaunch is a simple and lightweight but cool-looking X application launch bar based on YeahLaunch. It displays a user-specified list of applications as tabs along the top of the screen. The user can specify an x coordinate offset to position...
143.36 KB  
Multimedia Integration Tools  -  txt2mp3mac 5
This is an applescript application that converts a given text file to mp3. Useful for creating audiobooks from ebooks, listening to lecture notes on the go, etc. It employs the default Mac OS X speech synthesizer for text-to-speech and a bundled...
430.08 KB  
Utilities  -  Spotlight-Toggle 1.0
Spotlight Remover is an AppleScript application that runs through the application Terminal (most likely already on the computer) to move your annoying Spotlight feature to a backup folder in ~/Documents.
2.43 MB  
Security Tools  -  VUWER 1.4
VUWER (pronounced like "viewer") is an Applescript application designed to remotely track your MacBook or MacBook Pro (or any other Apple computer) in the event that it is lost or stolen. VUWER is not foolproof, but it is reasonably secure, easy...
6 MB  
Security Tools  -  Encrypt This 1.1
Encrypt This is a Universal Binary AppleScript application for Mac OS X 10.3 or later that takes all the files and folders you drag onto the Encrypt This icon and creates an AES 128-bit encrypted .dmg disk image file which contains those files and...
81.92 KB  
Libraries  -  Mac::Apps::Seasonality::Constants 0.0.4
Mac::Apps::Seasonality::Constants is a Perl module for static definitions of aspects of Seasonality. SYNOPSIS use Mac::Apps::Seasonality::Constants qw{ $SEASONALITY_NAME $SEASONALITY_CREATOR $SEASONALITY_HISTORY_DATABASE_PATH }; use...
8.19 KB  
Libraries  -  DBIx::Recordset 0.26
DBIx::Recordset is a Perl extension for DBI recordsets. SYNOPSIS use DBIx::Recordset; # Setup a new object and select some recods... *set = DBIx::Recordset -> Search ({!DataSource => dbi:Oracle:...., !Table => users, $where => name = ?...
94.21 KB  
News Publishing  -  News System PHP 1.3.4
News System application is a news content management system made in PHP programming language.Features: - Single user account. - Data is stored in text files. - Formatting text by BBCode. - Posts can be filed under multiple categories. - Custom...
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB