• 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: set position does not works "as is"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set position does not works "as is"


  • Subject: Re: set position does not works "as is"
  • From: "Nigel Garvey" <email@hidden>
  • Date: Wed, 3 Feb 2010 01:13:24 +0000

Emile Schwarz wrote on Mon, 01 Feb 2010 16:30:12 +0100:

>set position does not works unless you close and re-open the window

>Any idea on how to change that ?

I don't know how to change it, but faster work-rounds are to change the
window's target momentarily or, better still, flip its view setting.
Switching to list view and back produces a visual "whoosh" effect that
you might get to like.  :)

  tell application "Finder"
    -- Keyboard shortcut
    set fw to front Finder window

    -- Set the variable
    set IcnName to "Icon.png"

    -- Change the file position
    tell fw
      if (item IcnName exists) then
        set position of item IcnName to {630, 74}
        set {current view, current view} to {list view, icon view}
      end if
    end tell
  end tell

NG

 _______________________________________________
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

  • Prev by Date: Re: problem with perform mail action
  • Next by Date: More busy work
  • Previous by thread: set position does not works "as is"
  • Next by thread: Re: set position does not works "as is"
  • Index(es):
    • Date
    • Thread