Re: error -1700
Re: error -1700
- Subject: Re: error -1700
- From: Luther Fuller <email@hidden>
- Date: Sun, 11 Nov 2012 15:28:27 -0600
I'm not sure I've read the problem correctly or understand it, but I did some experimenting with getting an alias list of the contents of a (target) folder using System Events. So, just in case there is a connection, I'm reporting the result of my experiment.
System Events can create a list of items in a folder, but this list seems to be un-usable … (I felt like I was banging my head against a brick wall for about an hour) UNTIL you discover System Events 'path' command. I finally got this script which works:
tell application "Finder" activate set folderAlias to (target of window 1) as alias end tell set itemAliasList to my getItemAliasList(folderAlias) set AppleScript's text item delimiters to {return} log itemAliasList as text
on getItemAliasList(folderAlias) tell application "System Events" set itemList to (every item of disk item (folderAlias as text)) repeat with i from 1 to (count items of itemList) (path of (item i of itemList)) as alias set item i of itemList to the result end repeat end tell return itemList end getItemAliasList
The list itemList contains aliases to every folder and file in the target folder including invisible items.
|
_______________________________________________
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>) |