• 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 harddisk name in a path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Is it possible to set the harddisk name in a path
  • From: Peter Fischer <email@hidden>
  • Date: Fri, 17 May 2002 14:14:01 +0200

>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:")
>
>Then starting with the script
>
>
>Then I don't have to change the script or the harddisk name when I copy it
>on other computers
>
>__
>thanks
>Bjorn Van Blanckenberg
>

Hi Bjorn,

you have to concatenate the two strings:

tell application "Finder" to set Disk_Name to (name of startup disk)
& ":folder:second folder:another folder:last
folder:"
--
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: 
 >Is it possible to set the harddisk name in a path (From: Bjorn Van Blanckenberg <email@hidden>)

  • Prev by Date: Saving optimized PDF in acrobat
  • Next by Date: Re: Hello, I'm new here (now there's a classic)
  • Previous by thread: 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