Forum Archive

editor.get_path() fails on iPhone, works on iPad

n8henrie142

I wrote a snippet that uses editor.get_path() as one of the "action" scripts. On the iPad, it works great, but the same code on the iPhone (synced via Dropbox, so I'm pretty sure it's exactly the same) just steals the cursor and highlights the script name(?).

Can anyone replicate this?

omz

There's currently a bug that causes the first action in the menu to trigger renaming the current script instead of starting the script of the action, it probably has nothing to do with the get_path function.

To work around this for now, you can put some "dummy" script as the first entry in the menu. Since they're sorted alphabetically, you could use something that starts with an underscore to make sure it appears before the others.

n8henrie142

That did it! Thanks.