Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple script?



On Jul 27, 2006, at 2:24 PM, jay wrote:
Does anyone have an apple script built that will find all "/" or other unusable characters from file or folder names and replace with say a "-" instead?

Text item delimiters may help:

http://macscripter.net/articles/402_0_10_0_C/

Though beware that a simple usage like this would lose initial, terminal and successive bad characters:

set text item delimiters to {"/", ":"}
set strlist to words of ":dd//sneaker/funk::kk/"
set text item delimiters to "-"
display dialog (strlist as text)
 -- displays dd-sneaker-funk-kk

Also remember that "quoted form of" is your friend when working with file names.

—IWC

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden
References: 
 >Apple script? (From: jay <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.