Re: Is it possible to set the hard disk name in a path
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.