• 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: looking for busy work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: looking for busy work?


  • Subject: Re: looking for busy work?
  • From: Yvan KOENIG <email@hidden>
  • Date: Sun, 31 Jan 2010 18:41:46 +0100


Le 31 janv. 2010 à 18:07, Robert Poland a écrit :

Scripters,

I have this script (attached) I've been growing and using since 2004.

Thought i'd pass it on and see if anyone had improvements/comments.


(1) CAUTION , this script is a Smile 's one.

(2) CAUTION, this script is designed to drive Dreamweaver so if like me you don't own this app, you will be forced to fool AppleScript using an other app as a fake Dreamweaver.

(3) 
tell application "Finder"
set wdw to Finder window 1
select wdw -- in case the window was not selected
-- resize window so changes will hold - first
tell application "Finder" to tell wdw -- get original size (bounds)
set {leftSide, topSide, rightSide, bottomSide} to bounds
set bottomSide to bottomSide + 10 -- add 10 px to bottom
set bounds to {leftSide, topSide, rightSide, bottomSide}
end tell


--   then Zoom 
tell application "Finder" to tell wdw
set z to zoomed
if not z then
tell application "System Events" to tell (first process whose frontmost is true) to try
click button 2 of window 1
end try
end if
end tell


tell application "Finder" to tell wdw
set {leftSide, topSide, rightSide, bottomSide} to bounds -- get original size (bounds)
set xSize to rightSide - leftSide -- width of window
set bottomSide to bottomSide + 10 -- add 10 px to bottom
end tell
…

I don't understand why you are coding :

tell application "Finder" to tell wdw

when you are already in a  tell application "Finder" block.

Yvan KOENIG (VALLAURIS, France) dimanche 31 janvier 2010 18:41:31


 _______________________________________________
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

  • Follow-Ups:
    • Re: looking for busy work?
      • From: Robert Poland <email@hidden>
References: 
 >looking for busy work? (From: Robert Poland <email@hidden>)

  • Prev by Date: looking for busy work?
  • Next by Date: Re: looking for busy work?
  • Previous by thread: looking for busy work?
  • Next by thread: Re: looking for busy work?
  • Index(es):
    • Date
    • Thread