Re: POSIX file usage
Re: POSIX file usage
- Subject: Re: POSIX file usage
- From: Philip Aker <email@hidden>
- Date: Fri, 30 Aug 2002 00:13:13 -0700 (PDT)
- Composer: Philip Aker
On Fri, 30 Aug 2002, Adriaan Tijsseling wrote:
}I tried the following
}
} set unixpath to "/Users/foo/Library/Preferences/somefile.txt"
} set the macpath to (unixpath as POSIX file)
}
}But I received NSCannotCreateScriptCommandError (10) for the second
}statement.
}I also tried
} set the macpath to my POSIX file unixpath
}but that fails with the same error.
}
}Any ideas?
}
}adriaan (btw, running Jaguar with latest DevTools)
Try this:
set dpath to ((path to preferences folder) as string) & "somefile.txt"
set upath to (POSIX path of dpath)
do shell script "open " & upath
Philip Aker
www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.