Re: error -1700
Re: error -1700
- Subject: Re: error -1700
- From: Robert Poland <email@hidden>
- Date: Sun, 11 Nov 2012 21:45:12 -0700
On Nov 11, 2012, at 7:57 PM, John <email@hidden> wrote:
> Is it just me or is no one clear about what Robert is trying to accomplish with this script? Robert, what are you trying to accomplish with the script?
John,
Here is the final handler(?, is software ever final). It's purpose is to setup changing folder names of folders in a folder using find/replace.
My problems were compounded by depreciated commands and untested help.
on createList(winTarget)
tell application "Finder"
activate
set winTarget to target of front window as text
end tell
tell application "System Events"
set the_items to path of disk items of folder winTarget
repeat with the_item in the the_items
name of disk item the_item
set this_info to name of disk item the_item as text
set theKind to class of disk item the_item as text
if this_info ≠ "" then
if theKind = "folder" then
if this_info does not contain "Adobe" then -- Adobe can't tolerate changes
set the_item to (the_item) as alias
set the item_name to this_info
my replaceString(item_name, the_item, search_string, replacement_string)
end if
end if
end if
end repeat
end tell #System Events
end createList
My thanks to all who helped,
Robert Poland - Fort Collins, CO
_______________________________________________
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