• 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: Is it possible to set the hard disk name in a path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to set the hard disk name in a path


  • Subject: Re: Is it possible to set the hard disk name in a path
  • From: Peter Fischer <email@hidden>
  • Date: Fri, 17 May 2002 15:21:38 +0200

To add something to a string of text, you use the & character. Also, you
don't need to use the Finder to do this:

-- begin script
property diskName : the last word of ((the path to the startup disk) as
text)
property myFolder : (diskName & ":second folder:another folder:")

log myFolder as text
-- end script


Hi JollyRoger,

if the disks name is "X Disk" the script will fail, because the
last word of ((path to startup disk) as text) will returnd "Disk"

I think we can use ((path to startup disk) as text).
This will return "X Disk:"

Regards
--
Peter Fischer
Fischer-Bayern
"The source for german AppleScripters"
http://www.fischer-bayern.de
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Is it possible to set the hard disk name in a path (From: JollyRoger <email@hidden>)

  • Prev by Date: Re: Need help writing some AppleScripts!!! Please help!
  • Next by Date: Re: Need help writing some AppleScripts!!! Please help!
  • Previous by thread: Re: Is it possible to set the hard disk name in a path
  • Next by thread: Need help writing some AppleScripts!!! Please help!
  • Index(es):
    • Date
    • Thread