• 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: Why these errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why these errors?


  • Subject: Re: Why these errors?
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 11 Feb 2014 11:40:30 +1100

On 11 Feb 2014, at 11:01 am, has <email@hidden> wrote:

However, the current default target is only used when you don't specify an explicit target yourself.

So here's a small script. Tell me what you think it will return with, say, a folder selected. Answer honestly before you run it.

tell application id "com.apple.finder" -- Finder.app
set x to selection
set y to item 1 of x
set a to class of y
tell y
set b to class
end tell
return {a, b}
end tell

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: 
 >Re: Why these errors? (From: has <email@hidden>)

  • Prev by Date: Re: Why these errors?
  • Next by Date: Re: Why these errors?
  • Previous by thread: Re: Why these errors?
  • Next by thread: [Related] William Cook
  • Index(es):
    • Date
    • Thread