• 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
Apple script from a c file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apple script from a c file


  • Subject: Apple script from a c file
  • From: Shreyas Srinivasan <email@hidden>
  • Date: Thu, 15 Sep 2005 11:11:15 +0530

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.

I am doing this for the first time so please forgive my ignorance. I
breezed through the list archive and did not find anything which sollved
my problem.

Cheers,
Shreyas

 _______________________________________________
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

  • Follow-Ups:
    • Re: Apple script from a c file
      • From: Markus Hitter <email@hidden>
  • Prev by Date: Re: Can I force XCode to place my product where I want it?
  • Next by Date: Re: Apple script from a c file
  • Previous by thread: Re: Can Xcode allow multiple definitions of a fn?
  • Next by thread: Re: Apple script from a c file
  • Index(es):
    • Date
    • Thread