• 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: Finder event question - scripting bridge, appscript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder event question - scripting bridge, appscript


  • Subject: Re: Finder event question - scripting bridge, appscript
  • From: OzSanta <email@hidden>
  • Date: Fri, 21 Jan 2011 15:51:09 +1100


On 21/01/2011, at 3:38 PM, OzSanta wrote:


On 21/01/2011, at 3:20 PM, Sung-Jin Lim wrote:

Scripting bridge is not giving the correct answer (strangely machine dependent), so I tried ASTranslate program to see if I should use appscript.
It throws runtime error message like this one.  Any insights?

tell application "Finder"
set theSelection to selection
repeat with theItem in theSelection
get currentView of window of folder of theItem
end repeat
end tell

G'day

You're missing a space....


tell application "Finder"
set theSelection to selection
repeat with theItem in theSelection
get current view of window of folder of theItem
end repeat
end tell

By the way, this is more efficient...

tell application "Finder"
get current view of window of folder of (item 1 of (selection as list))
end tell

Regards

Santa



 _______________________________________________
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: 
 >Finder event question - scripting bridge, appscript (From: Sung-Jin Lim <email@hidden>)
 >Re: Finder event question - scripting bridge, appscript (From: OzSanta <email@hidden>)

  • Prev by Date: Re: Finder event question - scripting bridge, appscript
  • Next by Date: View mode of window?
  • Previous by thread: Re: Finder event question - scripting bridge, appscript
  • Next by thread: View mode of window?
  • Index(es):
    • Date
    • Thread