• 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: Name of file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name of file


  • Subject: Re: Name of file
  • From: Skeeve <email@hidden>
  • Date: Fri, 11 Jan 2008 18:51:28 +0100

Benedikt Quirmbach wrote:
How can I get the name of this file (without the extension)?
Example:
I choose "MyCSV.csv" and want to get "MyCSV".

No need to ask the finder because standard edition already is able to handle it:


set thecsvfile to (choose file with prompt "Wählen Sie die CSV-Datei:" of type {"TEXT"}) as alias
tell (info for thecsvfile)
set nme to name
set ext to name extension
if ext is not "" then
set nme to text 1 thru (-2 - (length of ext)) of nme
end if
end tell
return nme



_______________________________________________ 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
  • Follow-Ups:
    • Re: Name of file
      • From: KOENIG Yvan <email@hidden>
    • Re: Name of file
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Name of file (From: Benedikt Quirmbach <email@hidden>)

  • Prev by Date: Re: Rép: Name of file
  • Next by Date: Re: Name of file
  • Previous by thread: Re: Name of file
  • Next by thread: Re: Name of file
  • Index(es):
    • Date
    • Thread