• 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: Routine for parsing path-filename....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Routine for parsing path-filename....


  • Subject: Re: Routine for parsing path-filename....
  • From: dev_sleidy <email@hidden>
  • Date: Sat, 27 May 2006 18:50:15 -0400

Only after reviewing my last post, did it occur to me - that the 'set AppleScript's text item delimiters to ":"' entry is unnecessary.

Thus, the reduced code is:

set der_volle_Pfadname to "HD2:Documents:PK:20060527_1280.jpg"

set {oAiTD, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
set die_Dateiname to last text item of der_volle_Pfadname
set die_Dateiepfad to (((text items 1 through -2) of der_volle_Pfadname) as string) & ":"
set AppleScript's text item delimiters to oAiTD


display dialog "der volle Pfadname: " & return & der_volle_Pfadname & return & return & "der Dateipfadname: " & return & die_Dateiepfad & return & return & "die Dateiname: " & return & die_Dateiname
_______________________________________________
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
  • Prev by Date: Re: iTunes : "File permission error"
  • Next by Date: Re: iTunes : "File permission error"
  • Previous by thread: Re: Routine for parsing path-filename....
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread