• 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
Get only the name of the file, instead of the whole path!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get only the name of the file, instead of the whole path!


  • Subject: Get only the name of the file, instead of the whole path!
  • From: Marcus Rodrigues <email@hidden>
  • Date: Wed, 16 Jan 2008 10:12:43 -0800

Good afternoon all!

How can I get only the name of a file, instead of the whole path? Here are my tries!

on adding folder items to this_folder after receiving added_items
	set file_name to every item of added_items as alias
	--set arquivos to the items of added_itens
	--set file_nome to the name of arquivos
	set AppleScript's text item delimiters to ":"
	--set lista to every item of added_items
	--set file_nome to the last text item of lista
	set texto to last text item of added_items as text

	tell application "Cyberduck"
		launch
		set theBrowser to (make new browser)
		tell (theBrowser)
			set encoding to "UTF-8"
			connect to "ftp.dkwdesign.com.br" with protocol "ftp" as user "dkwdesignftp" with initial folder "/httpdocs/FTP/"
			upload item file_name

		end tell
	end tell
	tell application "Mail"

		launch
		set newMessage to make new outgoing message with properties {subject:"Link para arquivo " & texto, content:"Link para arquivo:" & return & return & "http://www.dkwdesign.com.br/"; & texto, visible:true}
	end tell
end adding folder items to





Marcus - Sem aibuque no momento  :-(
 _______________________________________________
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: Get only the name of the file, instead of the whole path!
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: "a reference to"
  • Next by Date: Re: "a reference to"
  • Previous by thread: Re: Simulating pressing of Enter key / Continue button
  • Next by thread: Re: Get only the name of the file, instead of the whole path!
  • Index(es):
    • Date
    • Thread