Currently Being ModeratedDec 19, 2012 7:31 AM (in response to madhusudhanjr)
if you're using HFS (colon-delimited) file paths, then you always have to prefix it with the file or alias keywords. If you don't, Applescript will see it as a plain sting rather than a file path. You can use POSIX (slash-delimited) paths directly. examples:
set filepath to POSIX path of file "Macintosh HD:Library:Application Support:Macromedia:mms.cfg"
set fp to open for access alias filePath with write permission
Currently Being ModeratedDec 19, 2012 7:38 AM (in response to twtwtw)
thanks for reply, i implemented ur changes but still prob exists..
error "System Events got an error: Bad name for file. alias /Library/Application Support/Macromedia/mms.cfg" number -37
Currently Being ModeratedDec 19, 2012 8:00 AM (in response to madhusudhanjr)
Well error -49 is that the file is already open. So if you run the script and it opens the file but you get the error -5000 and the script aborts then when you run the script again the file is open as far as the editor is concerned and you get the -49 error.
The only way I know to clear that is to quit he script editor and reopen it. That should eliminate the -49 error Not sure what the -5000 is telling you, trying to look it up now.
Message was edited by: Frank Caggiano - -5000 is path or permission problem on the file
Currently Being ModeratedDec 19, 2012 7:56 AM (in response to madhusudhanjr)
Those were intended as examples, not implementations. You shouldn't generally use the alias keyword with a slash-delimited path. why don't you show he current version of the script (so I can see exactly what you did).
oh, and **** me for an old ****, but please: the English sentance is "I implemented your changes but the problem still exists". I don't mind that stuff in texting, but on a public forum it makes you look like you topped out at a third-grade education. Not at all inspiring...
Currently Being ModeratedDec 19, 2012 8:48 AM (in response to twtwtw)
First fix your own - it is sentence not sentance. You don't know whether the OP has English as a first language, never mind the education level completed.
Currently Being ModeratedDec 19, 2012 8:00 PM (in response to Frank Caggiano)
is their any way to solve the permission error??