• 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
forbidden characters in applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

forbidden characters in applescript


  • Subject: forbidden characters in applescript
  • From: "Jan-Bultereys" <email@hidden>
  • Date: Mon, 10 Jan 2005 14:58:03 +0100
  • Thread-topic: forbidden characters in applescript

hi,

I am trying to isolate the problem with forbidden characters,
but I am not able to declare this in applescript

I know you can 'overwrite' a forbidden character with the && but I am not able to
compile the variable "forbidden"

The idea is to declare "FileName" (check all the forbidden characters) and when it DOES contain those forbidden characters,
replace it with an _ (underscore)

any idea's are much appreciated.


--set forbidden to "&&< > : " / \ | *?&&"
display dialog forbidden
repeat with temp_file in file_list
	set FileName to name of temp_file
	if FileName contains "/" or "(" or ")" or "&" then
		display dialog "You are using forbidden character"
	end if
end repeat
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: forbidden characters in applescript
      • From: email@hidden (Randal L. Schwartz)
    • Re: forbidden characters in applescript
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Path of self
  • Next by Date: Re: forbidden characters in applescript
  • Previous by thread: Re: Bounds of quark 6 as a string
  • Next by thread: Re: forbidden characters in applescript
  • Index(es):
    • Date
    • Thread