• 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: Vexing POSIX file issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vexing POSIX file issue


  • Subject: Re: Vexing POSIX file issue
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 13 Mar 2008 09:51:42 -0700

Guessing a bit from the event log, is the "/Volumes/David/..." path actually a path on a remote machine? And your machine doesn't have a "David" disk? The HFS-POSIX conversion relies on knowing what volumes are available, because of the root-vs-non-root distinction, so it won't necessarily work right for a path that came from a remote machine. Also, there are ways to mess up the conversion that would lead to effects like this; your code would help more than the event log.


--Chris Nebel AppleScript Engineering

On Mar 13, 2008, at 8:39 AM, Loren Ryter wrote:

I'm getting a bug report from a user running 10.5.2 that I can't reproduce
on my end involving setting POSIX File on a file on his mounted network home
folder.


Getting the POSIX File of:

/Volumes/David/Documents/Devonthink Dbase/David's DEVONthink Database.dtBase

Returns:

Macintosh HD:Volumes:David:Documents:Devonthink Dbase:David's DEVONthink
Database.dtBase


Instead of the expected:

David:Documents:Devonthink Dbase:David's DEVONthink Database.dtBase

Therefore, coercing that HFS path in an alias fails with an error.

My work around involves string substitution. But why should POSIX file get
that result in the first place? And why is it happening on his machine and
not on mine? And why wouldn't coercing the erroneous return into an alias
work?


Thanks!


Here's the event log:

tell application "DEVONthink Pro" of machine "eppc://seventeen.local: 3031"
get path of current database
"/Users/David/Documents/Devonthink Dbase/David's DEVONthink
Database.dtBase"
(*remotedbpath*)
(*/Users/David/Documents/Devonthink Dbase/David's DEVONthink
Database.dtBase*)
(*remotedbpath*)
(*/Volumes/David/Documents/Devonthink Dbase/David's DEVONthink
Database.dtBase*)
(*remotedbhfs*)
(*Macintosh HD:Volumes:David:Documents:Devonthink Dbase:David's
DEVONthink Database.dtBase*)
(*error*)
(*Can’t make file "Macintosh HD:Volumes:David:Documents:Devonthink
Dbase:David's DEVONthink Database.dtBase" into type alias.*)
end tell




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


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Vexing POSIX file issue
      • From: Loren Ryter <email@hidden>
References: 
 >Vexing POSIX file issue (From: Loren Ryter <email@hidden>)

  • Prev by Date: Re: Accessing lasts characters of a string
  • Next by Date: Re: Vexing POSIX file issue
  • Previous by thread: Re: Vexing POSIX file issue
  • Next by thread: Re: Vexing POSIX file issue
  • Index(es):
    • Date
    • Thread