• 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: KOENIG Yvan <email@hidden>
  • Date: Fri, 11 Jan 2008 21:22:06 +0100


Le 11 janv. 2008 à 18:51, Skeeve a écrit :

No need to ask the finder because
standard edition (I will not comment that ;-)
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

You are perfectly right.
The problem is that, I don't know why, I coded a script which was renaming the file when the question was to get the bare name.


I hope that this had no odd consequences on the OP's files.

Yvan KOENIG _______________________________________________
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: Luther Fuller <email@hidden>
References: 
 >Name of file (From: Benedikt Quirmbach <email@hidden>)
 >Re: Name of file (From: Skeeve <email@hidden>)

  • Prev by Date: Re: Name of file
  • Next by Date: Barcode Reader
  • Previous by thread: Re: Name of file
  • Next by thread: Re: Name of file
  • Index(es):
    • Date
    • Thread