• 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: Puzzle Of the Day
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Puzzle Of the Day


  • Subject: Re: Puzzle Of the Day
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 20 Aug 2010 15:17:04 -0700

Try this:


repeat with aJpg in MyPODjpgs
	log (aJpg as item is bjpg)

What I think is happening is the log command is not dereferencing ajpg so it's comparing a reference to a list item to an alias.

As for the log not recording the tell/end tell properly, I think that's a bug. You should file a report.

ES

On Aug 20, 2010, at 2:15pm, R. Nelson Byrne wrote:

> alias "Miele HD:Users:rnb:Desktop:Trim me:" returning MyPODfolder
>
> tell application "Finder" to get (files of MyPODfolder whose name ends with "jpg") as alias list returning MyPODjpgs
>
> alias "Miele HD:Users:rnb:Desktop:Trim me:A photo.jpg" returning bjpg
>
> repeat with ajpg in MyPODjpgs
> 	log (ajpg is bjpg)
> 	log {"ajpg: ", ajpg}
> 	log {"bjpg: ", bjpg}
> 	log {"Class of ajpg: ", class of ajpg}
> 	log {"Class of bjpg: ", class of bjpg}
> 	exit repeat
> end repeat
> -----------------------------------------

 _______________________________________________
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: Puzzle Of the Day
      • From: "R. Nelson Byrne" <email@hidden>
References: 
 >Puzzle Of the Day (From: "R. Nelson Byrne" <email@hidden>)

  • Prev by Date: Puzzle Of the Day
  • Next by Date: Re: Puzzle Of the Day
  • Previous by thread: Puzzle Of the Day
  • Next by thread: Re: Puzzle Of the Day
  • Index(es):
    • Date
    • Thread