pina
Legacy Member
m1che zei:Je moet denk ik nog een / voor users zetten:
open "/users/pina/Documents/EPG/xmltv.xml"
Als je dat niet doet:
"POSIX paths without a leading slash, such as "folder/file", are resolved relative to the POSIX working directory. This is supported, but only is useful for scripts run from the shell—the working directory is the current directory in the shell. The location of the POSIX working directory for applications is unspecified."
van:
AppleScript Language Guide: AppleScript Fundamentals
Ik heb ook een vraag: als ik in terminal typ: echo $PATH, krijg ik een lijst met oa usr/local/bin.
Vervolgens typ ik: which blabla ,met als resultaat: usr/local/bin/blabla
Maar toch als ik probeer blabla uit te voeren in terminal krijg ik:
-bash: blabla: command not found
Wil maar niet werken zeg :/
Zelfs op de mac van mijn werk lukt het simpel script niet. Gewoon textedit een bestand laten openen. Zegt constant dat het bestand niet bestaat. Heb alles al geprobeerd: met en zonder / ervoor, : ipv / gebruiken, ENG en NL foldernamen gebruiken... :/
edit: nu heb ik het ineens wel werkend gekregen. Ik zit nu op een NL-mac en de verwijzing naar uw paden moeten in het ENG gebeuren, ook al zie je in de finder de folders in het NL
En als ik nu bovenstaande code probeer, werkt die ook ineens wel
En als ik vanavond thuis ben, zal het wss wel weer niet werken
