Developer Knowledgebase
Knowledgebase Home
LiveMotion Library KB
Overview
Software Development Kits
Developer Knowledgebase
Support
Legal Notices
Feedback
Adobe Solution Partner Program
Join
Find a Solution Partner
Product
LiveMotion
Version
2.0
Last Edited
21-Feb-2002
Document
51748
How To: Which drive is considered to be the default drive on the Mac
Summary
Mac does not have the concept of default drive or a root or the default volume, like Windows (C:). The default drive in Mac is the Startup drive or the Boot drive.
This is important when you want to access files irrespective of platforms or while writing portable programs . To write portable scripts use relative path name instead of absolut path names. For example, say you are trying to access all file in a folder named Test which is in the root.
1. On Windows the path would be C:\Test
2. On Mac the path would be --- Macintosh HD\Test , or if the person has changed the name from Macintosh HD, this is difficult to figure out!
In ExtendScript you could use //Test --- as a path and then try to create a Folder object using Folder(path) which would return the folder object if it exists or create a new object.
Folder(//Test).
3. On Window this would result as --- C:\Test and on Mac --- Boot drive:Test.
4. And then you can work with this folder.
If you have Test within other sub-directories specify the complete path as say //f1/f2/f3/Test.
Was this Knowledgebase document helpful?
Yes
No
The articles in this knowledgebase are intended for use by software programmers currently using an Adobe SDK to extend or customize an Adobe product. These articles may be highly technical in nature.
If you have questions about an Adobe Product that are not related to development or an SDK product please visit:
http://adobe.com/support/main.html
Copyright © Adobe Systems Incorporated. All rights reserved.
Terms of Use
Online Privacy Policy