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

Re: question


  • Subject: Re: question
  • From: John Delacour <email@hidden>
  • Date: Thu, 24 Oct 2002 19:18:40 +0100
  • Mac-eudora-version: 5.3a6

At 8:50 am -0400 24/10/02, kevin michael wrote:

why does this not work in OS10 yet works in OS9

tell application "Finder"
activate
select disk "HD_1"
if position of selection is not {-2000, -2000} then
set position of selection to {-2000, -2000}
else
set position of selection to {0, 0}
end if
end tell

This should work in either


tell app "Finder"
activate
tell item (get name of startup disk)
reveal
set {h, v} to its position
set {h, v} to {h - 2000, v - 2000}
set its position to {h, v}
end
end


Then, for fun, try it without the 'get'

JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >question (From: kevin michael <email@hidden>)

  • Prev by Date: Can't quit from Dock or cmd-Q
  • Next by Date: Re: Can't quit from Dock or cmd-Q
  • Previous by thread: question
  • Next by thread: Re: tell app <script> to handler(a,b) doesn't work (ahem)
  • Index(es):
    • Date
    • Thread