• 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: "as file specification" path syntax for a non-boot drive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "as file specification" path syntax for a non-boot drive


  • Subject: Re: "as file specification" path syntax for a non-boot drive
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 7 Jun 2007 18:09:26 -0700

On Jun 7, 2007, at 4:42 PM, Bob Majors wrote:

I need to change the location to another drive. Is the following the correct syntax?

set gTheDir to startup_disk & "Volumes:200GB:on_demand" as file specification

No, because the other drive is not within the startup disk hierarchy.

This works:

tell application "Finder"
set targetDisk to (disk 2 as text)
-- or whatever disk number or name you wish
end tell
set gTheDir to targetDisk & "library" as file specification
-- change the folder hierarchy as needed


-- Michelle

--
Discordians don't pray: it is far too dangerous.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >"as file specification" path syntax for a non-boot drive (From: Bob Majors <email@hidden>)

  • Prev by Date: Re: TextEdit print to PDF and Mail
  • Next by Date: Adobe Reader 8.1.0 applescript suppport broken
  • Previous by thread: "as file specification" path syntax for a non-boot drive
  • Next by thread: Re: "as file specification" path syntax for a non-boot drive
  • Index(es):
    • Date
    • Thread