• 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: Bad script, good script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad script, good script


  • Subject: Re: Bad script, good script
  • From: "R. Nelson Byrne" <email@hidden>
  • Date: Tue, 04 Sep 2012 17:30:35 -0700

Luther Fuller has explained my puzzle: System Events works if told to move a "disk item", as it says in its dictionary. In the System Events world "disk item" is one element of "alias", but "alias" is not an element of "disk item". In fact, although "alias" has lots of possible elements, "disk item" has none at all.

I told System Events to move an "alias" and it failed. Didn't complain, didn't throw an error or make a log entry, just moved on.

Interestingly, the place to which it moves the "disk item" is a location specifier, undefined in its dictionary. Using an alias is acceptable for this purpose.

A learning experience.

Thanks to all who contributed to solving this puzzle.

Nelson


 _______________________________________________
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

  • Prev by Date: set user agent string on Safari
  • Next by Date: List of open applications
  • Previous by thread: Re: Bad script, good script
  • Next by thread: Re: Bad script, good script
  • Index(es):
    • Date
    • Thread