• 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: "koenig.yvan" <email@hidden>
  • Date: Sun, 11 Nov 2012 23:17:40 +0100

Le 11/11/2012 à 23:04, Luther Fuller <email@hidden> a écrit :

> On Nov 11, 2012, at 3:45 PM, koenig.yvan wrote:
>
>> Why aren’t you using :
>>
>> tell application "System Events"
>> set itemList to path of disk items of folder (folderAlias as text)
>> end tell
>>
>> This simple piece of code return a list of HFS pathnames.
>
> I quit when I got something that worked. My head was hurting.
> I tried it and that does work! But … it does NOT avoid the repeat if you want a list of aliases.
>
> itemList, above, returns a list of text items. If you can use that, then you are finished.
> I always get a list of aliases if I can. I think it's safer and more reliable.

As I do my best to work without the Finder, I have no problems with pathnames as strings.

System Events accept them
do schell script require quoted posix paths
ASObjC Runner accept aliases, strings, posix paths or quoted posix paths (it would be a good idea to check for this late one).

Yvan KOENIG (VALLAURIS, France) dimanche 11 novembre 2012 23:17:33



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