Re: error -1700
Re: error -1700
- Subject: Re: error -1700
- From: Brian Christmas <email@hidden>
- Date: Sun, 11 Nov 2012 14:24:57 +1100
On 11/11/2012, at 10:06 AM, Robert Poland < email@hidden> wrote: Hi,
Needing more lessons;
I've tried Google, "The Definitive Guide" and the Standard Dictionary.
When run this script comes up with the error.
error "Can’t make \"Hearing Aid comments-questions.pages\" into type constant." number -1700 from "Hearing Aid comments-questions.pages" to constant
-- with a finder window showing on the desktop;
tell application "Finder" activate set winTarget to target of front window as alias tell me to set the_items to list folder winTarget with invisibles end tell #Finder
repeat with i from 1 to number of items in the the_items set this_info to "" set the_item to item 2 of the the_items as text set this_info to name of item (file information of file (path to the_item)) set this_info to this_info as string display dialog "" & "the_item = " & the_item & return & "this_info = " & this_info end repeat
TIA,
Robert Poland - Fort Collins, CO
G'day Robert.
This seems to work.
Regards
Santa
tell application "Finder" activate set winTarget to target of front window as text tell me to set the_items to (list folder winTarget with invisibles) #Finder repeat with i from 1 to number of items in the the_items set this_info to "" set the_item to item i of the the_items as text set this_info to properties of item (winTarget & the_item as text)
display dialog "" & "the_item = " & the_item & return & "this_info = " & name of this_info end repeat end tell
|
_______________________________________________
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>) |