Getting correct path string for external disk
I am using ExtendScript as part of a cross-platform application such as Tauri or Electron. It is necessary to generate a POSIX path string from the File object so that it can be handled by that process.
ExtendScript's File.fullName can be handled normally on the local disk. However, on an external disk, it is different from the format required by the cross-platform application.
|
|
Expected Value |
Actual Value |
|
macOS |
/Volumes/volume_name/path/to/file.ext |
/volume_name/path/to/file.ext |
|
Windows |
D:/path/to/file.ext |
/d/path/to/file.ext |
Is there any way to get the path string indicated by Expected Value other than doing text replacement on my own?
