• 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: Is this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this a bug?


  • Subject: Re: Is this a bug?
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 16 Mar 2009 10:57:47 +0100


Le 16 mars 2009 à 00:08:51, Deivy Marck Petrescu a écrit :

<script>
tell application "Finder" to get item 1 of disk "deivy"
set l to {{1, 2}, {3, 4}, {5, 6}}
return item 1 of (every item of l)
</script>


From my point of view, the behavior is logical.

tell application "Finder"
	set d to disk "Maxtor 3"
	log class of d
	set id1 to item 1 of d
end tell
set l to {{1, 2}, {3, 4}, {5, 6}}
log class of l
return item 1 of (every item of l)


the log is:

tell application "Finder"
	get disk "Maxtor 3"
		disk "Maxtor 3"
	get class of disk "Maxtor 3"
		disk
	get class of disk "Maxtor 3"
		disk
	(*disk*)
	get item 1 of disk "Maxtor 3"
		folder "Desktop" of disk "Maxtor 3"
	(*list*)
end tell


d (aka disk "Maxtor 3") is of class disk which is a list of disk items l is a list of lists

item 1 of d is the disk item (aka folder "Desktop" of disk "Maxtor 3")
item 1 of l is the first item of this list of lists so it is {1,2}

Yvan KOENIG (from FRANCE lundi 16 mars 2009 10:57:43)


_______________________________________________ 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: 
 >Is this a bug? (From: Deivy Marck Petrescu <email@hidden>)
 >Re: Is this a bug? (From: Barry Wainwright <email@hidden>)
 >Re: Is this a bug? (From: Deivy Marck Petrescu <email@hidden>)
 >Re: Is this a bug? (From: KOENIG Yvan <email@hidden>)
 >Re: Is this a bug? (From: Deivy Marck Petrescu <email@hidden>)

  • Prev by Date: Re: Is this a bug?
  • Next by Date: Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
  • Previous by thread: Re: Is this a bug?
  • Next by thread: Re: Is this a bug?
  • Index(es):
    • Date
    • Thread