Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another load movie question



If you can use "call method", try this.

URL string --> POSIX path

    set URLString to "file://localhost/Users/ssfactory/Desktop/"
    set theURL to call method "URLWithString:" of class "NSURL" with
parameter URLString
    call method "path" of theURL

    --> "/Users/ssfactory/Desktop/"


POSIX path --> URL string

    set POSIXPath to "/Users/ssfactory/Desktop/"
    set theURL to call method "fileURLWithPath:" of class "NSURL" with
parameter POSIXPath
    call method "absoluteString" of theURL

    --> "file://localhost/Users/ssfactory/Desktop/"

This works even with the special characters.

SSFactory
<email@hidden>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.