Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 3 of 3

Thread: AAS + Cocoa?

  1. #1
    whitesaint's Avatar
    whitesaint is offline cocoa love
    Join Date
    Jun 2001
    Location
    Clearwater, Florida
    Posts
    701
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question AAS + Cocoa?

    Is it possible to combine an AppleScript Studio App and a Cocoa Application into one application? I was just wondering because AAS can do many things that Cocoa cannot, and things that Cocoa wasn't made for.

    Also, would it be possible to combine an AppleScript studio document with a Cocoa (.m) document? Thanks in advance, some please reply.

    -whitesaint
    Mac Mini Core 2 Duo
    1 GB RAM
    ----------------------------------------------------------
    Custom mac software and bad ass consumer mac software

  2. #2
    seb2 is offline Registered User
    Join Date
    Jan 2002
    Location
    Germany
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok, i have to admit that so far, i've only had a look at applescript studio, never done anything with it. but /developer/examples/applescript studio/mixed bag looks like the answer to your question.

    i personally have used nstasks with osascript. quite easy and very handy if you just want to execute one fix applescript command, also works for longer applescripts which you can dynamically create. just seperate the single lines with "\n" and pass them all to osascript with "-e" as first argument.

    i've played around with nsstatusitem and wrote a small faceless app that just sits in the upper right corner of your menu bar all the time and displays all pictures from a given folder and lets you choose one that it then sets as desktop background. just to get to know the nsstatusbar apis. applescript is a lot nicer to set the desktop background, so i use that. very nice.

  3. #3
    whitesaint's Avatar
    whitesaint is offline cocoa love
    Join Date
    Jun 2001
    Location
    Clearwater, Florida
    Posts
    701
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    hey thanks! is it possible if you can post or send me the code to change the desktop background? Please? If not, at least point me in the right direction? Thanks in advance.

    -whitesaint
    Mac Mini Core 2 Duo
    1 GB RAM
    ----------------------------------------------------------
    Custom mac software and bad ass consumer mac software

 

 

Similar Threads

  1. Cocoa IE and MSN Messenger...but not office or WMP?
    By wdw_ in forum Apple News, Rumors & Discussion
    Replies: 8
    Last Post: October 4th, 2002, 07:55 AM
  2. String manipulation in Cocoa
    By strikeman in forum Software Programming & Web Scripting
    Replies: 10
    Last Post: July 31st, 2002, 01:57 PM
  3. Cocoa Forum website
    By kainjow in forum Software Programming & Web Scripting
    Replies: 10
    Last Post: June 11th, 2002, 04:26 PM
  4. Cocoa App oddities
    By X Rocks in forum Mac OS X System & Mac Software
    Replies: 0
    Last Post: October 15th, 2001, 12:41 PM
  5. Cocoa vs. Carbon???
    By knighthawk in forum Software Programming & Web Scripting
    Replies: 4
    Last Post: July 23rd, 2001, 02:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •