What is the best way to get the name (without the extension) of a file?
What is the best way to get the name (without the extension) of a file?
- Subject: What is the best way to get the name (without the extension) of a file?
- From: Michelle Steiner <email@hidden>
- Date: Wed, 4 May 2005 07:11:59 -0700
"Displayed name" will include the the extension if it is not hidden,
so it won't work in all cases. This is what I came up with:
set Ext_hidden to the extension hidden of the_File
set the extension hidden of the_File to true
set the File_Name to the displayed name of the_File
set the extension hidden of the_File to Ext_hidden
Is there a better way? (You get to define "better.")
-- Michelle
--
Chastity always takes its toll. In some it produces pimples; in
others, sex laws. -- Karl Kraus
_______________________________________________
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