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!
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.
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 timeCode: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
Never been so happy to do some scripting![]()
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!
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
Awesome! Can't wait to get this mapped out to my Wiimote.
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 usewe're close to NAVI Integration boys!!!
Lets put some work into that!!! I need some red bull LOL
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 appsMore 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
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.
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
Yep, simply need to find the best way to use those scriptsThanks again BugByte!!! Coudnt do this without ur help!
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!
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)
NOTE: the following code only Pause the VIDEOCode: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
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 littleCode: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
Let me know if this fits ur needs!
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 scriptsbut 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
Bookmarks