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

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

Serving Software Downloads in 976 Categories, Downloaded 30.070.923 Times

MacPerl::AppleScript 0.02

  Date Added: January 27, 2010  |  Visits: 429

MacPerl::AppleScript

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 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
MACPERL::APPLESCRIPT RELATED
File Utilities  -  Indexo 1.7.0.0
Indexo is a lightweight application that allows you to change files or folders name to have an ascending name sort. for WindowsME, NT, XP, 2003, Vista, 2008, Vista64, 7, 7x64
 
Network & Internet  -  RouteSplit 1.4
RouteSplit is a AppleScript Studio application for Mac OS X. With RouteSplit you can add a static route, test it and optionally install a launch startup script in your system in order to preserve the route settings after reboots.
276.48 KB  
Productivity  -  Random Nation 1.1.0.0
This application does more then get random numbers like the name implies, It will help you make some of the toughest decisions of your life! Chili's or Outback Steak House? Bad Teacher or Horrible Bosses? Which girl should you take home...
1024 KB  
Utilities  -  Mini-XML 2.3
Mini-XML is a small XML parsing library that you can use to read XML and XML-like data files in your application without requiring large non-standard libraries. The project only requires an ANSI C compatible compiler (GCC works, as do most vendors...
153.6 KB  
Mail Clients  -  Mail to FileMaker Importer for Mac OS 2.14
An AppleScript-based application that can be used to automatically import email data from Mac OS X Mail or Microsoft Entourage into a FileMaker Pro database. Within the applications interface, users can easily configure the database and fields to...
5.5 MB  
Libraries  -  Lazarus x32 0.9.30.2
The Lazarus IDE application was designed to be a stable and feature rich visual programming environment for the FreePascal Compiler. It supports the creation of self-standing graphical and console applications. Lazarus is the class libraries for...
64.5 MB  
Libraries  -  Lazarus x64 0.9.30.2
The Lazarus IDE application was designed to be a stable and feature rich visual programming environment for the FreePascal Compiler. It supports the creation of self-standing graphical and console applications. Lazarus is the class libraries for...
75.5 MB  
Libraries  -  Lazarus for Mac OS X 0.9.30.2
The Lazarus IDE application was designed to be a stable and feature rich visual programming environment for the FreePascal Compiler. It supports the creation of self-standing graphical and console applications. Lazarus is the class libraries for...
121.3 MB  
Libraries  -  Lazarus for Linux 0.9.30.2
The Lazarus IDE application was designed to be a stable and feature rich visual programming environment for the FreePascal Compiler. It supports the creation of self-standing graphical and console applications. Lazarus is the class libraries for...
53.6 MB  
Science  -  EST Express 1.0
EST Express is an open-source, cross-platform web server application that imports sequences from cDNA libraries and provides several layers of annotation based on Entrez Gene to allow the user to highlight useful genes and manage cDNA library...
27.32 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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