Rushhour Posted February 15, 2006 Posted February 15, 2006 Hi all I try to open file by 'openurl', following is my path. H:coh-itAdminDomain Names RegistrationDomain Name in PDFDN (.com.xx)xxx.pdf Actually I was still working on the file, but few days back I have managed to do this right already. But today my openurl dun works. After playing with it I realise it only opens up to 2 path. e.g. H:xxx.pdf then it will works. If more then 2 path e.g. H:coh-itxxx.pdf, it wont works the file wont be able to open. And oddly H:xxx.pdf works. I have access to these files, i can manually go into these folders then file to open it but not through my 'openurl' button. Can someone help me with this..? Thanks a lot Kelvin
Ted S Posted February 15, 2006 Posted February 15, 2006 Kelvin, Personally, I would use Send Event rather than Open URL. Why? I guess because you are not really trying to open a URL. (Uniform Resource Locator. i.e. a web page) You're opening a file or folder on your PC right? To open a folder try something like this: Send Event ["explorer.exe " & Quote ("c:folderfolderfolder")] To open a file: Send Event
Rushhour Posted February 16, 2006 Author Posted February 16, 2006 Hi Ted Thanks for your response. I manage to find the cause of the problem already. Filemaker is not able to open file by reading its shortcut. And I tried both 'openurl' and 'sendevent', and oddly openurl works but not sendevent. It prompts me this error, "The file "H:coh-ITAdminDomain" could not be found and is required to complete this operation". But nvm sice my 'openurl' can work already I have another problem now. My file will be park in server, Users will access it through IWP. And thats actually the reason why i use 'openurl' : But the problem comes now, though it works in filemaker client, but it can't works in iwp. The file wont be launched. It shows the normal error browser page. Anyone know what to do..? Else my file wont be a perfect solution already. Thanks a lot Kelvin
Grant Cox Posted March 3, 2006 Posted March 3, 2006 I expect the reason you are seeing the error on SendEvent is due to the space in your file path. Try putting quotes around the entire path in your script.
Recommended Posts
This topic is 6841 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now