• 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: JollyRoger <email@hidden>
  • Date: Fri, 17 May 2002 07:56:12 -0500

On 5/17/2002 6:07 AM, "Bjorn Van Blanckenberg" <email@hidden> wrote:

> tell application "Finder"
> set Disk_name to the name of the startup disk
> end tell
>
> property folder1 : ("(Disk_name): folder:second folder:another folder:last
> folder:")

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

HTH

JR
_______________________________________________
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.

  • Follow-Ups:
    • Re: Is it possible to set the hard disk name in a path
      • From: Peter Fischer <email@hidden>
References: 
 >Is it possible to set the harddisk name in a path (From: Bjorn Van Blanckenberg <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 harddisk name in a path
  • Next by thread: Re: Is it possible to set the hard disk name in a path
  • Index(es):
    • Date
    • Thread