• 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
Re: Script Spaces
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Spaces


  • Subject: Re: Script Spaces
  • From: Robert Poland <email@hidden>
  • Date: Tue, 21 Apr 2009 21:22:55 -0600

Steve,

FYI, here's what I have for now. For multiple machines.

(* Spaces_Setup - help email@hidden - 4/21/09    
*)
tell (do shell script "/usr/sbin/system_profiler SPDisplaysDataType | grep Resolution") to set {newR, newB} to {word 2 as number, word 4 as number}

tell application "Finder"
if exists application "System Preferences" then
tell application "System Preferences" to quit
beep
end if
end tell

set imac to false
if newR > 1440 then imac = true -- larger monitor

tell application "System Events"
tell spaces preferences of expose preferences
set spaces enabled to true
set spaces columns to 3
set spaces rows to 3
set app_layout to application bindings
set app_layout to app_layout & {|com.katoemba.calq|:1} -- and Calq in space 1
set app_layout to app_layout & {|com.ranchero.NetNewsWire|:1} -- and NetNewsWire in space 1
set app_layout to app_layout & {|com.apple.finder|:1} -- and Finder in space 1
set app_layout to app_layout & {|com.apple.mail|:1} -- and Mail in space 1
set app_layout to app_layout & {|com.apple.Safari|:1} -- and Safari in space 1
set app_layout to app_layout & {|com.apple.spotlight|:1} -- and Spotlight in space 1
set app_layout to app_layout & {|com.satimage.Smile|:2} -- and Smile in space 2
set app_layout to app_layout & {|com.transtex.texeditplus|:2} -- and Tex-Edit Plus in space 3
set app_layout to app_layout & {|com.adobe.dreamweaver-9.0|:3} -- and Dreamweaver in space 4
set app_layout to app_layout & {|net.habilis.validator-sac|:3} -- and Validator in space 4
set app_layout to app_layout & {|com.skype.skype|:4} -- and Skype in space 4
set app_layout to app_layout & {|com.tacosoftware.HTMLEdit|:4} -- and Taco HTML Edit in space 4
set app_layout to app_layout & {|com.apple.iTunes|:5} -- and iTunes in space 5
set app_layout to app_layout & {|com.apple.iPhoto|:6} -- and iPhoto in space 6
if imac then set app_layout to app_layout & {|com.markspace.missingsync.palmos|:7} -- and Missing Sync in space 7
set app_layout to app_layout & {|com.apple.iCal|:7} -- and iCal in space 7
set app_layout to app_layout & {|com.hp.scanpro|:8} -- and HP.Scan Pro in space 8
set app_layout to app_layout & {|com.lemkesoft.graphicconverter|:8} -- and GraphicConverter" in space 8"
set app_layout to app_layout & {|com.adobe.Acrobat.Pro|:8} -- and Acrobat.Pro in space 8
set app_layout to app_layout & {|com.microsoft.Excel|:9} -- and Excel in space 9
set app_layout to app_layout & {|com.microsoft.Word|:9} -- and Word in space 9"
set application bindings to app_layout


end tell
end tell



(* 
Names from:
tell application "System Events" to get bundle identifier of every process
*)


On Apr 21, 2009, at 7:55 AM, Steve Thompson wrote:


On 21 Apr 2009, at 14:28, Robert Poland wrote:

What's the secret to identifying the App that is targeted? I can't seem to get other than "Unknown".

tell application "System Events" to get bundle identifier of every process



It appears that there is no dictionary for expose preferences, any help here.

It's in the dictionary for "System Events"

Steve
--------------------------
Steve Thompson
http://stetho.mp

Bob Poland - Fort Collins, CO



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Script Spaces (From: Robert Poland <email@hidden>)
 >Re: Script Spaces (From: Steve Thompson <email@hidden>)
 >Re: Script Spaces (From: Robert Poland <email@hidden>)
 >Re: Script Spaces (From: Steve Thompson <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 6, Issue 183
  • Next by Date: Re: Script Spaces
  • Previous by thread: Re: Script Spaces
  • Next by thread: Re: Script Spaces
  • Index(es):
    • Date
    • Thread