ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Build an iTunes Remote Control
Subject:   I wrote this, And it doesn't work.
Date:   2005-03-20 10:52:35
From:   Cool6324
tell application "iTunes"
run
end tell


As open.scpt


and




#!/usr/bin/perl
#
system "echo 'open' > /tmp/iTunesRemoteControl";
system "chmod uga+rw /tmp/iTunesRemoteControl";
#
print "Content-type: text/vnd.wap.wml\n\n";
#
open MENU, "./menu" or die "'menu' not in current dir";
while (<MENU>) {print "$_";}
close MENU;


and added this to the daemon
"open") osascript $scriptDir/open.scpt;;


What do I do to get it to run? And file permissions are correct.


1 to 1 of 1
  1. Matthew Russell photo I wrote this, And it doesn't work.
    2005-03-20 11:06:47  Matthew Russell | O'Reilly AuthorO'Reilly Blogger [View]

    • I wrote this, And it doesn't work.
      2005-03-20 11:56:22  Cool6324 [View]

      • Matthew Russell photo I wrote this, And it doesn't work.
        2005-03-20 15:00:23  Matthew Russell | O'Reilly AuthorO'Reilly Blogger [View]

        • I wrote this, And it doesn't work.
          2005-03-20 15:49:46  Cool6324 [View]

1 to 1 of 1