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

Re: error -1700


  • Subject: Re: error -1700
  • From: Robert Poland <email@hidden>
  • Date: Sun, 11 Nov 2012 11:04:35 -0700

All,

My current battle is to get the "kind" :
	tell application "System Events"
...
	set this_info to name of disk item the_item
	set theKind to kind of disk item the_item
…

Gets the "name" but "kind" errors with folders.

On Nov 11, 2012, at 10:31 AM, John <email@hidden> wrote:

> Although it is very similar to your script, he can get other properties like this:
>
> tell application "Finder" to set winTarget to target of front window as alias
> tell application "System Events" to set the_items to every item of winTarget
> repeat with anItem in the_items
>     set {aName, aPath, aClass} to {name, path, class} of anItem
>     display dialog "Name: " & aName & return & "Path: " & aPath & return & "Class: " & aClass buttons {"Cancel", "OK"} default button "OK"
> end repeat
>
>
> On Sun, Nov 11, 2012 at 12:06 PM, koenig.yvan <email@hidden> wrote:
>
> Le 11/11/2012 à 17:49, John <email@hidden> a écrit :
>
>> Here is another approach:
>>
>> tell application "Finder" to set winTarget to target of front window as alias
>> tell application "System Events" to set the_items to name of every item of winTarget
>> repeat with anItem in the_items
>>     display dialog "the_item = " & anItem buttons {"Cancel", "OK"} default button "OK"
>> end repeat
>>
>
> For sure but I'm not sure that Robert is just wanting to get the name of the items.
> After all, it was what he got thru list folder
>
> <2012-11-11T18.05.36.png>
>
> Yvan KOENIG (VALLAURIS, France) dimanche 11 novembre 2012 18:06:11

Robert Poland - Fort Collins, CO




 _______________________________________________
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: error -1700
      • From: "koenig.yvan" <email@hidden>
References: 
 >error -1700 (From: Robert Poland <email@hidden>)
 >Re: error -1700 (From: "koenig.yvan" <email@hidden>)
 >Re: error -1700 (From: Robert Poland <email@hidden>)
 >Re: error -1700 (From: "koenig.yvan" <email@hidden>)
 >Re: error -1700 (From: Robert Poland <email@hidden>)
 >Re: error -1700 (From: John <email@hidden>)

  • Prev by Date: Re: error -1700
  • Next by Date: Re: Out of Control Aliases?
  • Previous by thread: Re: error -1700
  • Next by thread: Re: error -1700
  • Index(es):
    • Date
    • Thread