Re: RegExps in AS
Re: RegExps in AS
- Subject: Re: RegExps in AS
- From: kai <email@hidden>
- Date: Thu, 24 Feb 2005 23:49:56 +0000
On Thursday, February 24, 2005, at 03:07 am, some doughnut wrote:
-------------------------
tell application "Finder" to tell folder (choose folder)
tell (files whose extension hidden is false)
set n to name
set extension hidden to true
end tell
set l to displayed name of files
set extension hidden of files whose name is in n to false
end tell
l
-------------------------
Sorry folks - that'll choke if there are no filename extensions showing
at all. This should fare better:
-------------------------
tell application "Finder" to tell folder (choose folder)
tell (files whose extension hidden is false)
set x to (count) > 0
if x then
set n to name
set extension hidden to true
end if
end tell
set l to displayed name of files
if x then set extension hidden of files whose name is in n to false
end tell
l
-------------------------
---
kai
_______________________________________________
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