• 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: 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


References: 
 >error -1700 (From: Robert Poland <email@hidden>)
 >Re: error -1700 (From: Luther Fuller <email@hidden>)
 >Re: error -1700 (From: Jonathan Levi <email@hidden>)
 >Re: error -1700 (From: John <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: sort lines in TextWrangler
  • Index(es):
    • Date
    • Thread