Page 2 of 8 FirstFirst 12345678 LastLast
Results 11 to 20 of 72

Thread: Send front end commands to ICE3

  1. #11
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    284
    Here's a little script I did this morning so it could check if ICE3 is opened. That way it doesn't send an error message if the apps is not loaded.
    Code:
    if appIsRunning("ICE³") then
    	tell application "System Events"
    		tell process "ICE³"
    			click button "Preferences" of group 1 of window 1
    		end tell
    	end tell
    end if
    
    
    on appIsRunning(appName)
    	tell application "System Events" to return name of every process contains appName
    end appIsRunning
    I'm now looking to include some verification to check on which screen ICE3 is on, so we can launch the right script at the right time

    Never been so happy to do some scripting
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

  2. #12
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    So, how about setting one of the commands to hide ICE3 and display the Fusion/Parallels screen running the nav program. Hitting it again would swap them back. Voila! Integrated nav!
    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
    Constant Bitrate onepuff's Avatar
    Join Date
    Jan 2006
    Posts
    184
    Awesome! Can't wait to get this mapped out to my Wiimote.

  4. #14
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    284
    Quote Originally Posted by Bugbyte View Post
    So, how about setting one of the commands to hide ICE3 and display the Fusion/Parallels screen running the nav program. Hitting it again would swap them back. Voila! Integrated nav!
    I'm working on it guys, it's pretty simple but I'm doing some other stuff at the same time.

    I see 2 possibilty for this:

    1- Assign space 1 to ICE3, Assign space 2 to VMFusion(full screen)
    - If button press and space = 1 switch to space = 2
    - else if switch to space 1 VOILA!

    2- Execute command+tab
    If button press
    if application active = VMWARE switch to aplication ICE3
    else if switch to VMWARE
    end if

    I'll see along the road which will be easier or best to use we're close to NAVI Integration boys!!!

    Lets put some work into that!!! I need some red bull LOL
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

  5. #15
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    284
    Here's the script that checks the current SPACE ur on and then switch to the one you want...It's pretty simple, now I need to implement all those scripts into one apps More fun to come !!!!
    Code:
    (*CHECKS WHICH SPACE YOUR ON*)
    set xxVar to 0
    tell application "System Events"
    	tell process "SystemUIServer"
    		set xVar to value of attribute "AXChildren" of menu bar 1
    		set cVar to count of xVar
    		repeat with iVar from 1 to cVar
    			set zVar to value of attribute "AXDescription" of item iVar of xVar
    			try
    				if zVar = "spaces menu extra" then
    					set xxVar to iVar
    					exit repeat
    				end if
    			end try
    		end repeat
    	end tell
    end tell
    if xxVar = 0 then
    	display dialog "Spaces Menu Extra not installed"
    else
    	tell application "System Events"
    		tell process "SystemUIServer"
    			set theCurrentSpace to value of menu bar item xxVar of menu bar 1
    		end tell
    	end tell
    end if
    (*Variable theCurrentSpace returns the SPACE UR ON*)
    
    (*Switch to the space you like*)
    if theCurrentSpace = "1" then
    	tell application "System Events"
    		tell process "Finder"
    			keystroke "2" using command down (*assign COMMAND+# to switch space in spaces properties*)
    		end tell
    	end tell
    else
    	tell application "System Events"
    		tell process "Finder"
    			keystroke "1" using command down (*assign COMMAND+# to switch space in spaces properties*)
    		end tell
    	end tell
    end if
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

  6. #16
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    Aha! It used to be that you couldn't get at the spaces using AS.

    Keep up the good work! It's going to be a great addition to the OS X installs.
    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

  7. #17
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    284
    Yep, simply need to find the best way to use those scripts Thanks again BugByte!!! Coudnt do this without ur help!
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

  8. #18
    Low Bitrate pulsarsimon's Avatar
    Join Date
    Nov 2009
    Location
    Melbourne Australia
    Posts
    63
    I'm a complete noob to AS, but this looks very interesting.

    since ICE³ doesn't support CD-Audio, I want to set the insert audio CD to pause ICE³ (in space1), then switch to space2, open iTunes and start playing..

    I can trigger the script from 'insert AudioCD" in the preferences, and I can set iTunes to start playing the CD straight away.. that's easy. but ICE³ still plays too - so the sound comes from both players

    as I said, I may need some hand-holding here from a generous person - at least the list of button names, and a generic script (like the one above *thanks*).

    I'm getting more excited now
    MacMini in an Alfa? - Why not!

  9. #19
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    284
    lol, so If I understand you need the script that would simply PAUSE the music from ICE3 ?

    It may be tricky since ICE3 doesnt have the AUDIO commands on the HOME page, I'll run some tests and let you know what could be done

    EDIT: Here's the simple scripts that check if ICE3 is running, if not NO command are sent, If it is running, it sends the right command to PAUSE or UNPAUSE (yes its the same command for both command)

    NOTE: the following code only pause the music from AUDIO (video below)
    Code:
    if appIsRunning("ICE³") then
    	tell application "System Events"
    		tell process "ICE³"
    			click button "Pause" of group 1 of window 1
    		end tell
    	end tell
    end if
    
    on appIsRunning(appName)
    	tell application "System Events" to return name of every process contains appName
    end appIsRunning
    NOTE: the following code only Pause the VIDEO

    Code:
    if appIsRunning("ICE³") then
    	tell application "System Events"
    		tell process "ICE³"
    			click button "Pause" of group 1 of sheet 1 of window 1
    		end tell
    	end tell
    end if
    
    on appIsRunning(appName)
    	tell application "System Events" to return name of every process contains appName
    end appIsRunning
    This code could be even BETTER if we could check on which ICE3 screen we are, but I didnt see any way to achieve this FOR NOW! I hope this is helping a little

    Let me know if this fits ur needs!
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

  10. #20
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    284
    Took me couple minutes to figure a way to check on which PANEL ICE3 is.

    NOTE: The following CODE checks if the "Coverflow view" button is present, if not...nothing to do. If the button name is present, it clicks on the "Coverflow view" and then click PAUSE

    I will modify this script later to put the PANEL name into a variable and use it for all my scripts but for now...here's the script

    Code:
    if checkICE3Panel("Coverflow View") then
    	tell application "System Events"
    		tell process "ICE³"
    			click button "Coverflow View" of group 1 of window 1
    			click button "Pause" of group 1 of window 1
    		end tell
    	end tell
    end if
    
    on checkICE3Panel(ButtonName)
    	tell application "System Events"
    		tell process "ICE³" to return name of every button of group 1 of window 1 contains ButtonName
    	end tell
    end checkICE3Panel
    VmtSquad - I sold my soul to Honda!
    Final Install
    CarPC progress: 95%

Page 2 of 8 FirstFirst 12345678 LastLast

Similar Threads

  1. My Own front end - from the ground up
    By Greeno2k8 in forum Software & Software Development
    Replies: 32
    Last Post: 01-01-2010, 07:48 PM
  2. Centrafuse, TPMS 2.1.0.9 and Vista
    By WuNgUn in forum TPMS Technical Support
    Replies: 14
    Last Post: 08-26-2009, 02:57 PM
  3. Infill G4 front end
    By joey4 in forum Software & Software Development
    Replies: 0
    Last Post: 05-27-2009, 10:38 AM
  4. Replies: 0
    Last Post: 07-15-2008, 11:07 PM
  5. BASIC Stamp question
    By Banderon in forum General Hardware Discussion
    Replies: 18
    Last Post: 05-07-2004, 08:33 AM

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
  •