Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Applescript?

  1. #11
    Variable Bitrate super-fly's Avatar
    Join Date
    Feb 2006
    Location
    NJ
    Posts
    256
    I originally wrote the script to delay 2 because it was trying to click power on jxm before it was open and it was causing an error. Instead i figured a better way would be to check to see if the window was open and if it was then to click it. I wrote this:
    Code:
    set x to 0
    	repeat until x = 1
    		if exists window "JXM" then
    			set x to 1
    			tell process "JXM"
    				tell window "JXM"
    					click checkbox "Power"
    				end tell
    			end tell
    		end if
    	end repeat
    It seems to be getting stuck in a loop though.

  2. #12
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    You can also tell your applescript to launch JXM, then save the script as an app and just launch the script. It would open JXM and turn it on for you.

    If you build your applescript as an application in XCode, you can set your own plist values to remember which channel you were last on and so forth.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  3. #13
    Variable Bitrate super-fly's Avatar
    Join Date
    Feb 2006
    Location
    NJ
    Posts
    256
    i did tell it to do that....the whole script lauches line in and launches jxm, then hides line in as well as pushes passthru and then pushes power on jxm. That was only a piece of my code. I was just trying to get the computer to check to make sure jxm was open before attemping to power it on. I was running into a problem because it would try and power it on and there was a sliht delay before it was open so i was getting an error. The above code seems to be stuck in a loop though. Thanks again.

  4. #14
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    If it is stuck in a loop, you probably aren't getting the name of the window right. You may have to use something like "Window 1" instead of "JXM".

    You can print the results of the check (true/false) to the console in XCode but I'm not sure if you can in AS scripter. Maybe record your actions as a script and it will tell you what the name is.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  5. #15
    Variable Bitrate super-fly's Avatar
    Join Date
    Feb 2006
    Location
    NJ
    Posts
    256
    you were right the name of the window is wrong, but recording my actions doesnt give me the right name. btw...i pm'ed u...did u get it

  6. #16
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    Quote Originally Posted by super-fly View Post
    you were right the name of the window is wrong, but recording my actions doesnt give me the right name. btw...i pm'ed u...did u get it
    Yep. Got it and have sent you some stuff. Let me know if it doesn't make it.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Annoucing iKarr
    By jdkarr01 in forum MacCar
    Replies: 88
    Last Post: 05-14-2009, 09:12 PM
  2. Harmony - Mac Front End Worklog
    By Bugbyte in forum MacCar
    Replies: 181
    Last Post: 02-23-2007, 01:19 PM
  3. NMEA extraction AppleScript need help
    By zapwizard in forum MacCar
    Replies: 15
    Last Post: 05-05-2006, 02:10 AM
  4. iDash progress
    By thecapitalizt in forum MacCar
    Replies: 78
    Last Post: 12-27-2005, 10:39 PM
  5. AppleScript Resorces?
    By iwakura in forum MacCar
    Replies: 4
    Last Post: 01-22-2005, 08:37 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
  •