• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apple script from a c file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple script from a c file


  • Subject: Re: Apple script from a c file
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 16 Sep 2005 07:11:57 -0700

On Thu, 15 Sep 2005 11:11:15 +0530, Shreyas Srinivasan <email@hidden>
said:
>Hey,
>
>I created a simple "Applescript application". When i tried to edit it i
>see that
>the control starts at main.m. I just want to execute a couple of
>statements in the
>Apple Script.
>My apple script looks like this
>
>        tell application "Finder"
>         launch application "X11"
>        end tell
>
>        set results to do shell script "cd ~; DISPLAY=:0.0;
>          export DISPLAY; PATH=$PATH:/usr/local/bin; export PATH ;
>          /opt/gnome-2.12/bin/evolution-start.sh > /dev/null 2>&1 &"
>
>I want the control to start execution from the apple script and then
>exit or someway
>to embed the applescript into the c file. I tried adding a main.scpt and
>removed the main.m
>hoping that would help but it did not.

Why not just use an applet? (i.e. in the Script Editor, save your code as an
application directly.) Then your code, as given above, would work just fine,
and you'd have none of the overhead of Cocoa, main.c, and so forth. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Can Xcode allow multiple definitions of a fn?
  • Next by Date: Re: Can Xcode allow multiple definitions of a fn?
  • Previous by thread: Re: Apple script from a c file
  • Next by thread: Still Newbie : nib files localization
  • Index(es):
    • Date
    • Thread