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



Thanks a lot
Andreas


Andreas Kiel

Spherico
Nelkenstr. 25
D-76185 Karlsruhe
Tel.: +49 (0)721 183 9753
eFax: +1 650 897 8094
eMail: email@hidden
On 14.03.2005, at 11:29, SS Factory wrote:

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


_______________________________________________ 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
References: 
 >Re: Another load movie question (From: SS Factory <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.